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

Bug 354047

Summary: Invoking function with string literal parameter with escaped " produces invalid Java
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-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-05 14:44:32 EDT
EGL 
library mine {}
	function caller()
		called("Simple value", true );
		called("const constFixedName string(4) = \"FREDFRED\";", false);
	end
	function called(details string, flag boolean)
		SysLib.writeStdOut(details + " " + flag);
	end
end

Java Error:
Multiple markers at this line
- The method ezeWrap(R) in the type EglAny is not applicable for the arguments (String, String)
- Syntax error on token "FREDFRED", , expected

Java code:
		AnyBoxedObject<String> eze$Temp3 = null;
		eze$Temp3 = EglAny.ezeWrap("const constFixedName string(4) = "FREDFRED";");

JS code:
		var eze$Temp3 = null;
		eze$Temp3 = egl.egl.lang.EglAny.ezeWrap("const constFixedName string(4) = \"FREDFRED\";");
Comment 1 Jeff Douglas CLA 2011-08-05 15:03:39 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-08-12 10:15:04 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:03:15 EDT
Closing this defect.