This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
gcj/55: jc1 dies on implicit String conversion
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/55: jc1 dies on implicit String conversion
- From: kuipers at cwi dot nl
- Date: 29 Sep 1999 16:05:17 -0000
- Cc: kuipers at cwi dot nl
- Reply-To: kuipers at cwi dot nl
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com,
- Resent-Reply-To: gnats-admin@sourceware.cygnus.com, kuipers@cwi.nl
- Resent-To: apbianco at cygnus dot com
>Number: 55
>Category: gcj
>Synopsis: jc1 dies on implicit String conversion
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Sep 29 09:10:04 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Tobias Kuipers
>Release: gcc-2.95.1
>Organization:
>Environment:
This fails on both sparc-sun-solaris2.6 and mips-sgi-irix6.5
>Description:
jc1 dies on statements that contain inline implicit String
conversion, such as on page 356 of the Java Language Spec.
Apparently someone over here actually used this construct.
He is now being punished :-)
>How-To-Repeat:
Try compiling with
gcj -c Bug.java -o Bug.o
--start file--
public class Bug {
// This demonstrates a bug in gcj
public static void main(String[] argv){
int i = 666;
System.out.println("The number "+i+" is "+ (""+i).length() +" digits wide");
}
}
--end file--
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: