Community
Participate
Working Groups
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.
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.