This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12915] New: Broken String concatenation
- From: "brawer at dandelis dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2003 18:10:23 -0000
- Subject: [Bug java/12915] New: Broken String concatenation
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12915
Summary: Broken String concatenation
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: brawer at dandelis dot ch
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-linux-gnu
GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu
The following code prints "null" when compiled with Sun J2SE 1.4.1_01.
However, the output is "0" when compiled with gcc version 3.4, cvs head branch
of 20031105.
public class X {
public static void main(String[] args)
{
System.out.println(((String) null) + "");
}
}