[kaffe] Kaffe treats extended abstract redefinition incorrectly [Tiny Test Case attached]

David Tiller dtiller at captechventures.com
Thu Aug 11 05:00:54 PDT 2005


Class1 is abstract, with a concrete private method 'method'.
Class2 is abstract, extends Class1, with a protected abstract method
'method'.
Class3 is concrete, extends Class2, with a concrete protected method
'method'.
 
When the classes are compiled and the Main class is run under Sun's JRE
1.4.2, the following is output:

In Class1 method.
In Class3 method.

When run under kaffe-1.1.5, the following is output:

In Class1 method.
java.lang.VerifyError: No code attribute for Class2.method.
  at Class2.init (Class2.java:8)
  at Class2.<init> (Class2.java:4)
  at Class2.<init> (Class3.java:3)
  at Main.main (Main.java:3)

--
David Tiller
Sr. Consultant
CapTech Ventures, Inc
Richmond, VA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Class1.java
Type: application/octet-stream
Size: 151 bytes
Desc: Class1.java
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20050811/b5ec8e2c/Class1-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Class2.java
Type: application/octet-stream
Size: 166 bytes
Desc: Class2.java
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20050811/b5ec8e2c/Class2-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Class3.java
Type: application/octet-stream
Size: 146 bytes
Desc: Class3.java
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20050811/b5ec8e2c/Class3-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.java
Type: application/octet-stream
Size: 94 bytes
Desc: Main.java
Url : http://pogo.kaffe.org/pipermail/kaffe/attachments/20050811/b5ec8e2c/Main-0002.obj


More information about the kaffe mailing list