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

Bug 363875

Summary: Error in generated Java when return statement doesn't specify returnValue
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-15 17:24:45 EST
program MyProgram
    myInt int;
    function main()
        myInt = myReturnTest();
    end
    function myReturnTest() returns(int)
        myInt int;
        return;
    end
end

Causes error in generated Java:
This method must return a result of type int	

Same program in RBD generates OK.

It should use the default value of the type in returns(int).
Comment 1 Jeff Douglas CLA 2011-11-16 13:53:21 EST
fixed
Comment 2 broy2 CLA 2011-11-17 11:57:12 EST
Verified in 20111117 build.