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

Bug 354604

Summary: String concat causes JavaGen & JavaScriptGen errors
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-12 07:35:45 EDT
Multiple markers at this line
	- IWN.JavaGen.9999.e 0/0 Stack Trace: java.lang.RuntimeException: org.eclipse.edt.mof.egl.NoSuchFunctionError
	- IWN.JavaGen.9998.e 0/0 Exception occurred: java.lang.RuntimeException: 
	 org.eclipse.edt.mof.egl.NoSuchFunctionError

Java has the error marker on the package statement.  JavaScript has the error marker on the line of code that is causing the error.  I think JavaGen should report the error like JavaScript.

Here's the EDT code:
program appendTest type BasicProgram {}
    function main()
        source, pattern String;
        source = "ab*def";
        pattern = "ab\\*def";
        fullString string = "Found " + pattern + " in " + source;
        sysLib.writeStdout(fullString);
    end
end
Comment 1 Jeff Douglas CLA 2011-08-12 07:45:07 EDT
This would be a compiler error, so Paul needs to fix it.
Comment 2 Kathy Carroll CLA 2011-08-15 14:30:17 EDT
this has been resolved
Comment 3 Kathy Carroll CLA 2011-08-15 14:30:28 EDT
verified
Comment 4 Lisa Lasher CLA 2011-10-11 16:01:25 EDT
Closing this defect.