[kaffe] Should IllegalAccessException be thrown or not?

Ito Kazumitsu ito.kazumitsu at hidec.co.jp
Sun Dec 11 21:05:59 PST 2005


From: Ito Kazumitsu <kaz at maczuka.gcd.org>
Date: Mon, 12 Dec 2005 11:35:59 +0900 (JST)

> kaffe/kaffevm/access.c has this code:
> 
>    261          else if( same_package && !(target_flags & ACC_PRIVATE) )
>    262          {
>    263                  /* Package. */
>    264                  slot_acc = 1;
>    265          }
> 
> I am afraid this makes anything private in the target class T
> accessible to the caller C if T and C are in the same package
> and T is accessible to C.

Sorry, I missed the "!".



More information about the kaffe mailing list