mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 22:30:02 +08:00
* java/lang/natClassLoader.cc:
(_Jv_PrepareCompiledClass): Throw NoClassDefFoundError, per spec. * resolve.cc: Include NoClassDefFoundError.h, not ClassNotFoundException.h. (_Jv_ResolvePoolEntry): Throw NoClassDefFoundError, per spec. * defineclass.cc: Don't include ClassNotFoundException.h. From-SVN: r57516
This commit is contained in:
parent
fd44a92df6
commit
169f75f384
@ -1,5 +1,12 @@
|
||||
2002-09-25 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/lang/natClassLoader.cc:
|
||||
(_Jv_PrepareCompiledClass): Throw NoClassDefFoundError, per spec.
|
||||
* resolve.cc: Include NoClassDefFoundError.h, not
|
||||
ClassNotFoundException.h.
|
||||
(_Jv_ResolvePoolEntry): Throw NoClassDefFoundError, per spec.
|
||||
* defineclass.cc: Don't include ClassNotFoundException.h.
|
||||
|
||||
* resolve.cc: Include StringBuffer.
|
||||
(_Jv_ResolvePoolEntry): Use StringBuffer to create error string.
|
||||
|
||||
|
@ -35,7 +35,6 @@ details. */
|
||||
#include <java/lang/ClassFormatError.h>
|
||||
#include <java/lang/NoClassDefFoundError.h>
|
||||
#include <java/lang/ClassCircularityError.h>
|
||||
#include <java/lang/ClassNotFoundException.h>
|
||||
#include <java/lang/IncompatibleClassChangeError.h>
|
||||
#include <java/lang/reflect/Modifier.h>
|
||||
|
||||
|
@ -260,7 +260,7 @@ _Jv_PrepareCompiledClass (jclass klass)
|
||||
if (! found)
|
||||
{
|
||||
jstring str = _Jv_NewStringUTF (name->data);
|
||||
throw new java::lang::ClassNotFoundException (str);
|
||||
throw new java::lang::NoClassDefFoundError (str);
|
||||
}
|
||||
|
||||
pool->data[index].clazz = found;
|
||||
|
@ -29,7 +29,7 @@ details. */
|
||||
#include <java/lang/ClassFormatError.h>
|
||||
#include <java/lang/IllegalAccessError.h>
|
||||
#include <java/lang/AbstractMethodError.h>
|
||||
#include <java/lang/ClassNotFoundException.h>
|
||||
#include <java/lang/NoClassDefFoundError.h>
|
||||
#include <java/lang/IncompatibleClassChangeError.h>
|
||||
#include <java/lang/reflect/Modifier.h>
|
||||
|
||||
@ -98,7 +98,8 @@ _Jv_ResolvePoolEntry (jclass klass, int index)
|
||||
if (! found)
|
||||
{
|
||||
jstring str = _Jv_NewStringUTF (name->data);
|
||||
throw new java::lang::ClassNotFoundException (str);
|
||||
// This exception is specified in JLS 2nd Ed, section 5.1.
|
||||
throw new java::lang::NoClassDefFoundError (str);
|
||||
}
|
||||
|
||||
if ((found->accflags & Modifier::PUBLIC) == Modifier::PUBLIC
|
||||
|
Loading…
Reference in New Issue
Block a user