[Nice-commit] Nice/src/bossa/syntax JavaClasses.java,1.32,1.33
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-04-15 16:05:32
|
Update of /cvsroot/nice/Nice/src/bossa/syntax
In directory sc8-pr-cvs1:/tmp/cvs-serv25469/src/bossa/syntax
Modified Files:
JavaClasses.java
Log Message:
Catch invalid class format errors and report them as warnings instead of
failing.
Index: JavaClasses.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/syntax/JavaClasses.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** JavaClasses.java 12 Feb 2003 16:13:53 -0000 1.32
--- JavaClasses.java 15 Apr 2003 16:05:27 -0000 1.33
***************
*** 305,308 ****
--- 305,312 ----
"\nYou probably need to install the corresponding package.");
}
+ catch (ClassFormatError e) {
+ User.warning("Class " + classType.getName() +
+ " has an invalid bytecode format");
+ }
for (Field f = classType.getFields(); f != null; f = f.getNext())
|