From 8283e1da46eb8f079570c7e8793ba778d78c95e3 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 27 Mar 2011 14:13:36 -0600 Subject: [PATCH] ignore instances of DelegatingClassLoader in JVM_LatestUserDefinedLoader --- src/classpath-openjdk.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 13f58186ee..544d1c47a7 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -3138,7 +3138,13 @@ EXPORT(JVM_LatestUserDefinedLoader)(Thread* t) virtual bool visit(Processor::StackWalker* walker) { object loader = classLoader(t, methodClass(t, walker->method())); - if (loader and loader != root(t, Machine::BootLoader)) { + if (loader + and loader != root(t, Machine::BootLoader) + and strcmp + (&byteArrayBody(t, className(t, objectClass(t, loader)), 0), + reinterpret_cast + ("sun/reflect/DelegatingClassLoader"))) + { this->loader = loader; return false; } else {