[Nice-commit] Nice/src/gnu/bytecode ClassType.java,1.13,1.14
Brought to you by:
bonniot
|
From: <ar...@us...> - 2003-04-26 15:47:06
|
Update of /cvsroot/nice/Nice/src/gnu/bytecode
In directory sc8-pr-cvs1:/tmp/cvs-serv20249/F:/nice/src/gnu/bytecode
Modified Files:
ClassType.java
Log Message:
fix for bug #727651 Unhandled NoClassDefFoundError
Index: ClassType.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/gnu/bytecode/ClassType.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** ClassType.java 9 Sep 2002 12:59:26 -0000 1.13
--- ClassType.java 26 Apr 2003 15:47:02 -0000 1.14
***************
*** 529,534 ****
public Method getDeclaredMethod(String name, Type[] arg_types)
{
! if ((flags & (ADD_METHODS_DONE|EXISTING_CLASS)) == EXISTING_CLASS)
! addMethods(getReflectClass());
Method method;
--- 529,542 ----
public Method getDeclaredMethod(String name, Type[] arg_types)
{
! if ((flags & (ADD_METHODS_DONE|EXISTING_CLASS)) == EXISTING_CLASS) {
! try {
! addMethods(getReflectClass());
! } catch (NoClassDefFoundError e) {
! String className = e.getMessage();
! bossa.util.User.error("Could not load class: " +
! (className == null ? "<unknown>" : className.replace('/', '.')) +
! " which is required by " + this_name);
! }
! }
Method method;
|