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>
* java/util/regex/Matcher.java, java/util/regex/Pattern.java,
......
......@@ -432,17 +432,24 @@ public abstract class ClassLoader
{
synchronized (clazz)
{
try {
linkClass0 (clazz);
} catch (Throwable x) {
markClassErrorState0 (clazz);
if (x instanceof Error)
throw (Error)x;
else
throw new java.lang.InternalError
("unexpected exception during linking: " + x);
}
try
{
linkClass0 (clazz);
}
catch (Throwable x)
{
markClassErrorState0 (clazz);
if (x instanceof Error)
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