|
Quick Lists
|
|
Bug ID:
|
4741726
|
|
Votes
|
0
|
|
Synopsis
|
allow Object += String
|
|
Category
|
java:compiler
|
|
Reported Against
|
mantis
|
|
Release Fixed
|
7(b25)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
4642850
,
4741702
,
6686855
|
|
Submit Date
|
04-SEP-2002
|
|
Description
|
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?
|
|
Work Around
|
N/A
|
|
Evaluation
|
I'm inclined to relax the spec, though we'd have to know what other
implementations do before making a final call on this.
xxxxx@xxxxx 2002-09-04
JLS3 permits Object+=String because the '+' means string concatenation and that is able to concatenate an Object with a String as easily as a String with an Object.
Posted Date : 2008-01-31 02:19:12.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |