This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
String concatenation, mingw, and the + operator
- From: Lars Andersen <lars at rimfaxe dot com>
- To: java at gcc dot gnu dot org
- Cc: gnustuff at thisiscool dot com
- Date: 27 Mar 2003 16:03:17 +0100
- Subject: String concatenation, mingw, and the + operator
- Organization:
I just tried the recent experimental GCC 3.3 build for Mingw, as posted
by Mohan Embar on http://www.thisiscool.com/gcc33_mingw.htm
I soon discovered that this build dislike zero's!!
Consider this program :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
public class Test
{
public static void main(String[] args)
{
System.out.println("Test");
System.out.println(""+0);
System.out.println(""+1);
}
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I would expect the output to be :
Test
0
1
, but this is what i get :
Test
1
The zero disappears! I have only tried this one native Mingw build, so I
wouldn't know if it is a new bug.
/Lars Andersen