[kaffe] About IllegalAccessException...

Guilhem Lavaux guilhem at kaffe.org
Fri Sep 26 13:13:01 PDT 2003


Hi again,

I am about to commit the fixed KJC (well tomorrow ;-) ). But I would be 
sure to know whether I am doing the right thing. For the moment when you 
want to call a method of a class A KJC lookup which method should be 
called in the inheretancy. The problem is that it tries to call directly 
that method even if the class which embeds it is not accessible. I 
modified the behaviour so it decides to call the same method but using 
the class name of the type which has been used to build the object. For 
example:

class B {
  public void foo() { }
}

class A extends B {
}


A a = new A();

a.foo();

will build:

executevirtual A.foo

and not:
executevirtual B.foo

Is someone who has seen the specification in detail can tell me if it's 
the right thing to do ? (Even if I know it should work in practice).

Cheers,
Guilhem.





More information about the kaffe mailing list