libgcj/7073: bytecode interpreter gives wrong answer for interface getSuperclass()

jsturm@one-point.com jsturm@one-point.com
Tue Jun 18 14:06:00 GMT 2002


>Number:         7073
>Category:       libgcj
>Synopsis:       bytecode interpreter gives wrong answer for interface getSuperclass()
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 18 14:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Sturm
>Release:        3.1
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
For an interface class instance, getSuperclass() returns java.lang.Object instead of null.  This is inconsistent with the behavior of compiled classes and the public documentation on java.sun.com.
>How-To-Repeat:
Run the attached example under the bytecode interpreter:

[jsturm@suzy jsturm]$ gcj -C B.java
[jsturm@suzy jsturm]$ gij B
class java.lang.Object
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="B.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="B.java"

aW50ZXJmYWNlIEEgewp9CgpwdWJsaWMgY2xhc3MgQiB7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1h
aW4oU3RyaW5nW10gYXJncykgewogICAgU3lzdGVtLm91dC5wcmludGxuKEEuY2xhc3MuZ2V0U3Vw
ZXJjbGFzcygpKTsKICB9Cn0K



More information about the Java-prs mailing list