United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4642850 : javac allows Object += String

Details
Type:
Bug
Submit Date:
2002-02-25
Status:
Closed
Updated Date:
2003-04-12
Project Name:
JDK
Resolved Date:
2002-09-02
Component:
tools
OS:
solaris_8
Sub-Component:
javac
CPU:
generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports
Relates:

Sub Tasks

Description
javac improperly allows this code

        Object o = null;
        o += "";

                                    

Comments
EVALUATION

A bug.

###@###.### 2002-03-12

                                     
2002-03-12
PUBLIC COMMENTS

The compiler user to allow += string concatenation with an Object variable on
the left-hand-side.  That is disallowed by the JLS and the compiler now
correctly rejects it.

###@###.### 2002-09-04
                                     
2002-09-04
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis
mantis-b02

FIXED IN:
mantis
mantis-b02

INTEGRATED IN:
mantis
mantis-b02

VERIFIED IN:
mantis


                                     
2004-06-14



Hardware and Software, Engineered to Work Together