[Kaffe] ease of use patch.

Maxim Kizub max at immsp.kiev.ua
Wed Feb 24 04:46:59 PST 1999


IMO, it's a javac's bug.
Also, you patch will not help in

kaffe com/qqq/Main.java

Anyway, source files are not expected to
be executed. Even

kaffe org/foo/Main.class

is not correct syntax.

I'm strictly against this patch.

Moses DeJong wrote:
> 
> On 24 Feb 1999, Alexandre Oliva wrote:
> 
> > On Feb 24, 1999, Moses DeJong <dejong at cs.umn.edu> wrote:
> >
> > > (after patch)
> >
> > > % kaffe ReflectedFloatBug1.java
> > > You probably meant ReflectedFloatBug1
> >
> > What if I create a class named mypackage.java?
> >
> > The suggestion should only be printed if it actually fails, but I
> > don't know how to accomplish that.  But for .class it can be done,
> > because it's not legal to have a class named class.
> >
> > --
> > Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org}
> > oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
> > Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil
> >
> 
> It is not legal to have a class named java.
> 
> // File java.java
> 
> package pkg1;
> 
> public class java {
>   public static void main(String[] argv) {
>     System.out.println("java ran");
>   }
> }
> 
> Compiling with Sun's javac produces an error.
> 
> % javac java.java
> java.java:3: Cyclic class inheritance or scoping.
> public class java {
>              ^
> java.java:3: Superclass pkg1.java. lang.Object of class pkg1.java not found.
> public class java {
>              ^
> 2 errors
> 
> Pizza does not raise and error but it should.
> 
> Mo DeJong
> dejong at cs.umn.edu



More information about the kaffe mailing list