This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/27352] SecurityManager.checkPermission() called unnecessarily
- From: "aph at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 2 May 2006 10:08:22 -0000
- Subject: [Bug libgcj/27352] SecurityManager.checkPermission() called unnecessarily
- References: <bug-27352-511@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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