This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Permissions not checked in BC-ABI code


>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:

>> The patch looks reasonable to me.  I suspect, unfortunately, that
>> we're going to want to defer the IllegalAccessError here.

Andrew> I'm not sure.  Can you make me a testcase for that?

Here's one that isn't integrated into the test suite.

Compile both to .class.  Then change a.m to private and recompile a to
.class.  'b' should still run correctly.

Tom

public class a {
  public static void m() { }
}

public class b {
  public static void m() { a.m(); }
  public static void main(String[] args) {
  }
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]