String concatenation, mingw, and the + operator

Lars Andersen lars@rimfaxe.com
Thu Mar 27 15:03:00 GMT 2003


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



More information about the Java mailing list