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
@ -1,3 +1,8 @@
|
||||
2003-01-21 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/util/natResourceBundle.cc (getCallingClassLoader): Start
|
||||
search at 2, not 3.
|
||||
|
||||
2003-01-21 Vladimir Puskas <vpuskas@eunet.yu>
|
||||
|
||||
* java/io/natFileWin32.cc (isAbsolute): Check path length before
|
||||
|
@ -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…
Reference in New Issue
Block a user