[kaffe] kjc compiler bug?

Matthias Pfisterer Matthias.Pfisterer at web.de
Fri Dec 19 17:09:01 PST 2003


Hi,

I found a language construct where the behaviour of kjc differs from the 
behaviour of Sun's javac and jikes:
-- OuterSuper.java --
public class OuterSuper
extends Object
{
     public OuterSuper(Object obj )
     {
         super();
     }


     public class InnerSuper
     extends Object
     {
     }
}
-- OuterSub.java --
class OuterSub
extends OuterSuper
{
     public OuterSub(Object obj )
     {
         super(obj);
     }


     protected class InnerSub
     extends OuterSuper.InnerSuper
     {
         protected InnerSub()
         {
             OuterSub.this.super();  // <--- the line for which an error 
is reported
         }
     }

}
----
 >jikes -classpath /usr/local/j2sdk1.4.2/jre/lib/rt.jar OuterSub.java 
OuterSuper.java
 >/usr/local/j2sdk1.4.2/bin/javac OuterSub.java OuterSuper.java
 >/usr/local/kaffe/bin/javac OuterSub.java OuterSuper.java
OuterSub.java:15: error:Invalid method name [JLS 15.12]
----
 >/usr/local/j2sdk1.4.2/bin/java -version
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
----
 >jikes

Jikes Compiler
(C) Copyright IBM Corp. 1997, 2001.
- Licensed Materials - Program Property of IBM - All Rights Reserved.

[...]

Version 1.15 - 26 Sept 2001
Originally written by Philippe Charles and David Shields
of IBM Research, Jikes is now maintained and refined by the
Jikes Project at:
http://ibm.com/developerworks/opensource/jikes
Please consult this URL for more information and to learn
how to report problems.
----
 >/usr/local/kaffe/bin/javac -V
Version 2.1A released 11. February 2002
----

javac and jikes do not report an error, but kjc does. May it be that 
this is a bug in kjc?

Please CC' me in replies, I'm not subscribed to the mailing list. Thanks

Matthias

-- 
Matthias Pfisterer	<mailto:Matthias.Pfisterer at web.de>
Reuchlinstrasse 28	phone ++49-711-62 87 12
D-70176 Stuttgart	(in Deutschland 0711-62 87 12)
GERMANY

Work like you don't need the money.
Love like you've never been hurt.
Dance like nobody is watching.

Java Sound Resources (examples, FAQ, applications):
http://www.jsresources.org/

Tritonus, the open source implementation of the Java Sound API:
http://www.tritonus.org/
--------------------------------------------------------------





More information about the kaffe mailing list