Commit b5f4221e by Tom Tromey Committed by Tom Tromey

ClassLoader.java (resolveClass0): Set cause for newly-created exception.

	* java/lang/ClassLoader.java (resolveClass0): Set cause for
	newly-created exception.

From-SVN: r57310
parent cc7ab9b7
2002-09-19 Tom Tromey <tromey@redhat.com>
* java/lang/ClassLoader.java (resolveClass0): Set cause for
newly-created exception.
2002-09-18 Michael Koch <konqueror@gmx.de> 2002-09-18 Michael Koch <konqueror@gmx.de>
* java/util/regex/Matcher.java, java/util/regex/Pattern.java, * java/util/regex/Matcher.java, java/util/regex/Pattern.java,
......
...@@ -432,17 +432,24 @@ public abstract class ClassLoader ...@@ -432,17 +432,24 @@ public abstract class ClassLoader
{ {
synchronized (clazz) synchronized (clazz)
{ {
try { try
linkClass0 (clazz); {
} catch (Throwable x) { linkClass0 (clazz);
markClassErrorState0 (clazz); }
catch (Throwable x)
if (x instanceof Error) {
throw (Error)x; markClassErrorState0 (clazz);
else
throw new java.lang.InternalError if (x instanceof Error)
("unexpected exception during linking: " + x); throw (Error)x;
} else
{
InternalError e
= new InternalError ("unexpected exception during linking");
e.initCause (x);
throw e;
}
}
} }
} }
......
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