Commit 570168b2 by Tom Tromey Committed by Tom Tromey

natResourceBundle.cc (getCallingClassLoader): Start search at 2, not 3.

	* java/util/natResourceBundle.cc (getCallingClassLoader): Start
	search at 2, not 3.

From-SVN: r61574
parent 490c57bb
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
......
/* 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment