| Summary: | Delegate comparisons result in InvocationTargetExceptions | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Scott Greer <greer> |
| Component: | EDT | Assignee: | Yun Feng Ma <mayunf> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | jeffdouglas, mayunf, pharmon |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Scott Greer
This is working in the mof model now. However, after simplifying the testcase to:
delegate del1() end
delegate del2() end
library lib3
bool boolean;
function foo()
end
function testMatch(e Event in)
type1 Del1 = foo;
bool = type1 == foo;
bool = type1 != foo;
end
end
I get compile errors in the generated Java. I am routing this to JavaGen to look at this.
Additionally, please route this to JSGen when the java is working correctly. I ran the following test in JS and the output is:
false
true
I expect the output to be
true
false
delegate del1() end
handler Hand2 type RUIhandler{initialUI =[ui
], onConstructionFunction = start, cssFile = "css/proj1.css", title = "Hand2"}
ui GridLayout{columns = 3, rows = 4, cellPadding = 4, children =[]};
function foo()
end
function start()
type1 Del1 = foo;
SysLib.writeStdout(type1 == foo);
SysLib.writeStdout(type1 != foo);
end
end
I've fixed this, however Paul needs to fix the compiler problem for "foo == foo" Sending this over to JSGen as requested Fixed JSGen part. Thanks. working great now |