------- Comment #4 from aph at gcc dot gnu dot org 2006-05-02 10:08 ------- The real reason is that we want the actual caller of SecurityManager.checkPermission(), but we're walking up the stack to the user code that called Class.newInstance() Class.getMethod(). This problem is as far as I'm aware unique to gcj, but it might be worth testing on other VMs.
I have a patch for this that I'm testing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27352