Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363941

Summary: Error in generated Java when case of label doesn't match
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas, margolis
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-11-16 12:17:29 EST
In the following code, the case is different for the label.
myLabel1:  vs  exit mylabel1;
This causes an error in the generated Java.

The label EzeLabel_mylabel1 is missing	

program labelTest type BasicProgram{}
    function main()
        myReturnTest();
    end
    function myReturnTest() returns(any)
        i int = 3;
    myLabel1:
        while(i == 3)
            sysLib.writeStdOut("labeled");

            for(x int from 1 to 5)

                syslib.writeStdOut("in for loop for x = " + x);
                if(x == 4)
                    syslib.writeStdOut("x = " + x);
                    i = 4;
                    exit mylabel1;
                end		
            end	
        end
        syslib.writestdout("leaving");
    end   
end
Comment 1 Jeff Douglas CLA 2011-11-16 13:07:31 EST
fixed
Comment 2 broy2 CLA 2011-11-16 13:56:36 EST
Man, I like the way you work!
Comment 3 broy2 CLA 2011-11-17 11:59:45 EST
Verified in 20111117 build.