mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 10:59:22 +08:00
ClassLoader.java (resolveClass0): Set cause for newly-created exception.
* java/lang/ClassLoader.java (resolveClass0): Set cause for newly-created exception. From-SVN: r57310
This commit is contained in:
parent
cc7ab9b79c
commit
b5f4221e51
@ -1,3 +1,8 @@
|
|||||||
|
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,16 +432,23 @@ public abstract class ClassLoader
|
|||||||
{
|
{
|
||||||
synchronized (clazz)
|
synchronized (clazz)
|
||||||
{
|
{
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
linkClass0 (clazz);
|
linkClass0 (clazz);
|
||||||
} catch (Throwable x) {
|
}
|
||||||
|
catch (Throwable x)
|
||||||
|
{
|
||||||
markClassErrorState0 (clazz);
|
markClassErrorState0 (clazz);
|
||||||
|
|
||||||
if (x instanceof Error)
|
if (x instanceof Error)
|
||||||
throw (Error)x;
|
throw (Error)x;
|
||||||
else
|
else
|
||||||
throw new java.lang.InternalError
|
{
|
||||||
("unexpected exception during linking: " + x);
|
InternalError e
|
||||||
|
= new InternalError ("unexpected exception during linking");
|
||||||
|
e.initCause (x);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user