| Summary: | Implement XML Attribute Support for Java Generation | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Kathy Carroll <carrollk> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jvincens |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
as a workaround add = 0 to each of the int fields ie:resultCode int {@XMLAttribute{}} = 0;
the problem was with record field initializers for primitive types Closing this defect. |
Build Identifier: 0.7.0 Record definition using XMLAttribute property doesn't produce valid Java code due to error The constructor Integer() is undefined Reproducible: Always Steps to Reproduce: 1. Define an EGL project using only the Java Generator 2. Create a source file with this record Record ResultSummary pkgName String {@XMLAttribute{}} ; //package name name String {@XMLAttribute{}}; //test library part name resultCode int {@XMLAttribute{}}; //test result code value testCnt int {@XMLAttribute{}}; passedCnt int {@XMLAttribute{}}; failedCnt int {@XMLAttribute{}}; errCnt int {@XMLAttribute{}}; badCnt int {@XMLAttribute{}}; notRunCnt int {@XMLAttribute{}}; end 3. Save file. EGL source is considered valid. Generated Java has issues.