| Summary: | Elements.getConstantExpression(Object) doesn't return the right value for String constant | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
| Component: | APT | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M7 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Olivier Thomann
Created attachment 192284 [details]
Proposed fix + regression tests
+1; this looks like a correct patch for 3.7. It is surprising that no one has run into this yet. Hopefully fixing this bug will not break existing processors written to the incorrect behavior! I think fixing it is the right thing to do, though. (In reply to comment #2) > It is surprising that no one has run into this yet. Hopefully fixing this bug > will not break existing processors written to the incorrect behavior! I think > fixing it is the right thing to do, though. Too bad if existing processors rely on a bug. javac doesn't have the bug so users that would try their processors on javac as well should see the problem. I released the change and I tagged the map file. Thanks for validating the patch, Walter. |