This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

String concatenation, mingw, and the + operator


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]