Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363941 - Error in generated Java when case of label doesn't match
Summary: Error in generated Java when case of label doesn't match
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 12:17 EST by broy2 CLA
Modified: 2017-02-23 14:18 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.