natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3.
* java/util/natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3. From-SVN: r61574
This commit is contained in:
parent
490c57bb8e
commit
570168b2b3
2 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2002 Free Software Foundation
|
||||
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -25,7 +25,10 @@ java::util::ResourceBundle::getCallingClassLoader ()
|
|||
gnu::gcj::runtime::StackTrace *t = new gnu::gcj::runtime::StackTrace(6);
|
||||
try
|
||||
{
|
||||
for (int i = 3; ; ++i)
|
||||
/* Frame 0 is this method, frame 1 is getBundle, so starting at
|
||||
frame 2 we might see the user's class. FIXME: should account
|
||||
for reflection, JNI, etc, here. */
|
||||
for (int i = 2; ; ++i)
|
||||
{
|
||||
jclass klass = t->classAt(i);
|
||||
if (klass != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue