-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
b25
-
generic
-
solaris_8
-
Not verified
javac used to allow expressions of the form
o += s
where o is a variable of type Object and s is an expression of type String.
We fixed that recently (4642850) and this caused a build failure (4741702).
Perhaps this is common enough that we should relax the spec instead of
fixing the compiler?
o += s
where o is a variable of type Object and s is an expression of type String.
We fixed that recently (4642850) and this caused a build failure (4741702).
Perhaps this is common enough that we should relax the spec instead of
fixing the compiler?
- relates to
-
JDK-6686855 Section 15.26.2 iin JLS 3 incorrectly allows += to be applied to Object, String.
- Closed
-
JDK-7058838 Changed behavior of compound assignment (+=)
- Closed
-
JDK-4642850 javac allows Object += String
- Closed