| Summary: | No validation error when trying to invoke missing setter for @Property | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Brian Svihovec <svihovec> |
| Component: | EDT | Assignee: | Project Inbox <edt.compiler-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jspadea, pharmon |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Bug Depends on: | 356388, 368575 | ||
| Bug Blocks: | 363656 | ||
|
Description
Brian Svihovec
It is hard to tell, since this is not a full testcase, but it looks like the testcase may be invalid. Matt says that the property annotation is not honored everywhere. It is only honored when it appears on a field of an external type. The following full testcase should show the problem:
externaltype javatype type javaobject
a int {@property{getmethod = "geta"}};
b int;
end
externaltype jstype type javascriptobject
a int {@property{getmethod = "geta"}};
b int;
end
library lib1
field1 javatype;
field2 jstype;
function f1()
field1.a = 3; //1 invalid
field1.b = 3; //0
field2.a = 3; //1 invalid
field2.b = 3; //0
end
end
The code was looking for the wrong annotation and the wrong package. The following classes were updated: JavaObjectFieldAccessValidator JavaScriptObjectFieldAccessValidator Verified in Version: 0.8.0.v201203300902-1DV-FjuJ6QMOF4nynxT88h8G. |