This is the mail archive of the java-prs@sourceware.cygnus.com 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]

gcj/55: jc1 dies on implicit String conversion



>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:

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