This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


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

java/1209: "-C" generates incompatible bytecode for interface intitializer



>Number:         1209
>Category:       java
>Synopsis:       "-C" generates incompatible bytecode for interface intitializer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apbianco
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:17:37 PST 2000
>Closed-Date:    Tue Jun 06 17:14:57 PDT 2000
>Last-Modified:  Tue Jun  6 17:16:01 PDT 2000
>Originator:     Bryce McKinlay
>Release:        gcc version 2.96 20000221 (experimental)
>Organization:
>Environment:
Redhat 6.1
java full version "1.2.2-I"
>Description:
Bytecode generated for interface initializers fails to 
verify on the JDK 1.2.2 virtual machine:

$ java InterfaceInit 
Exception in thread "main" java.lang.VerifyError: (class: I, method: <init> signature: ()V) Call to wrong initialization method

In addition, running the generated bytecode back through gcj
does not result in an error. This may be a bug in gcj's 
class verifier.
>How-To-Repeat:
Compile the attached test case with "-C" and run it on a JDK 1.2 VM
>Fix:

>Release-Note:

>Audit-Trail:

Formerly PR gcj/158


From: Tom Tromey <tromey@cygnus.com>
To: bryce@albatross.co.nz
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/158: "-C" generates incompatible bytecode for interface intitializer
Date: Wed, 1 Mar 2000 22:26:09 -0800 (PST)

 Hi Bryce.  If you run the failing output back through gcj, does it
 complain?  If not, is that a bug in the verifier in gcj?
 
 Tom
State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Tue Jun  6 17:14:57 2000
State-Changed-Why:
    This appears to have been fixed in the current compiler. The
    test case now runs fine on either JDK 1.2.2 or JDK 1.3

From: bryce@albatross.co.nz
To: apbianco@cygnus.com, bryce@albatross.co.nz,
  java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/158
Date: 7 Jun 2000 00:14:57 -0000

 Synopsis: "-C" generates incompatible bytecode for interface intitializer
 
 State-Changed-From-To: open->closed
 State-Changed-By: bryce
 State-Changed-When: Tue Jun  6 17:14:57 2000
 State-Changed-Why:
     This appears to have been fixed in the current compiler. The
     test case now runs fine on either JDK 1.2.2 or JDK 1.3
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=158&database=java
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="InterfaceInit.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="InterfaceInit.java"

aW50ZXJmYWNlIEkKewogIFN0cmluZyBmb28gPSAiYmFyIjsKfQoKcHVibGljIGNsYXNzIEludGVy
ZmFjZUluaXQgaW1wbGVtZW50cyBJCnsKICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmcg
YXJnc1tdKQogIHsKICAgIFN5c3RlbS5vdXQucHJpbnRsbihmb28pOwogIH0KfQo=


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