From 0008978072badfdf3c5afc69f98530cc3e48f953 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sat, 12 Feb 2005 13:51:11 +0000 Subject: Fixes bug libgcj/8170 Fixes bug libgcj/8170 * java/lang/ClassLoader.java (loadClass): Don't rewrap ClassNotFoundException. * gnu/java/lang/MainThread.java (run): Chain NoClassDefFoundError. * gnu/gcj/runtime/NameFinder.java (remove_interpreter): Removed. (remove_internal): New field superceding remove_interpreter. (sanitizeStack): Remove all no-package classes starting with "_Jv_". Remove no-class methods starting with "_Jv_". And Replace null class or method names with the empty string. Stop at either the MainThread or a real Thread run() method. (newElement): Made static. * java/net/URLClassLoader.java (findClass): Throw ClassNotFoundExceptions including urls, plus parent using toString(). (thisString): New field. (toString): New method. From-SVN: r94935 --- libjava/gnu/gcj/runtime/NameFinder.java | 75 ++++++++++++++++++++++----------- libjava/gnu/java/lang/MainThread.java | 4 +- 2 files changed, 53 insertions(+), 26 deletions(-) (limited to 'libjava/gnu') diff --git a/libjava/gnu/gcj/runtime/NameFinder.java b/libjava/gnu/gcj/runtime/NameFinder.java index 024a6ee..b14bbf9 100644 --- a/libjava/gnu/gcj/runtime/NameFinder.java +++ b/libjava/gnu/gcj/runtime/NameFinder.java @@ -37,8 +37,8 @@ import java.io.File; * Whether calls to unknown functions (class and method names are unknown) * should be removed from the stack trace. Only done when the stack is * sanitized. - *