Summary: | [1.5][compiler] Java compiler generates incorrect byte code for empty enums | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Norbert Kuck <Norbert.Kuck> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | Olivier_Thomann |
Version: | 3.1 | ||
Target Milestone: | 3.2 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=570106 | ||
Whiteboard: |
Description
Norbert Kuck
2006-02-01 15:22:42 EST
Good find. Added EnumTest#test126. Need to fix both Clinit creation code, and codegen. Olivier - we could optimize synth methods codegen to handle zero scenario more efficiently (though likely not a real world scenario). Backported to 3.1.x as indeed it looks bad, and fix is quite simple. fixed in head Olivier - pls check FormatterRegressionTests#test523&525 (both in HEAD and 3.1.x branch). Their behavior seems altered from presence of <clinit> which it shouldn't. Is this a formatter bug surfaced ? (if so need separate bug) Entered bug 126191. Verified for 3.2 M5 using build I20060215-0010 |