summaryrefslogtreecommitdiff
path: root/libjava/java/util/natResourceBundle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/util/natResourceBundle.cc')
-rw-r--r--libjava/java/util/natResourceBundle.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/libjava/java/util/natResourceBundle.cc b/libjava/java/util/natResourceBundle.cc
index adb83f92b26..35e90ee23d3 100644
--- a/libjava/java/util/natResourceBundle.cc
+++ b/libjava/java/util/natResourceBundle.cc
@@ -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)