Summary: | [compiler] += is not allowed between Object and String | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||||||
Status: | VERIFIED FIXED | QA Contact: | |||||||||
Severity: | normal | ||||||||||
Priority: | P3 | ||||||||||
Version: | 3.4 | ||||||||||
Target Milestone: | 3.5 M4 | ||||||||||
Hardware: | PC | ||||||||||
OS: | Windows XP | ||||||||||
Whiteboard: | |||||||||||
Attachments: |
|
Description
Olivier Thomann
2008-05-16 14:27:35 EDT
This is related bug 39248. It looks like javac changed its mind again. It depends if we want to fix it regardless of the compliance or only for compliance above 1.7. Created attachment 100733 [details]
Proposed fix
Proposed fix if we don't want to check the compliance being >= 1.7.
Created attachment 100734 [details]
Proposed fix (2)
Proposed fix if we want to fix this only for compliance >= 1.7.
Since the fix is pretty simple, I think this is a good candidate for RC2. Just need to decide what patch to release. All tests should be run as this will very likely fail the regression tests for bug 39248. Pls release the flavor of the fix which allows it from 1.7 on. We may want to relax the rule later on, but for now this should be a good emulation. Created attachment 117602 [details]
updated patch based on HEAD
Adds new regression tests triggered only when a JDK7 VM is used.
Released for 3.5M4. New regression test added in org.eclipse.jdt.core.tests.compiler.regression.AssignmentTest_1_7 Verified for 3.5M4 using I20081209-0100 |