Make the class loading behavior closer to the RI's.
Change-Id: Ic2ab91dc5a455a97dbcbe1f2d7b464a888d5bb66
diff --git a/test/003-omnibus-opcodes/src/Main.java b/test/003-omnibus-opcodes/src/Main.java
index eecead0..5dcc79c 100644
--- a/test/003-omnibus-opcodes/src/Main.java
+++ b/test/003-omnibus-opcodes/src/Main.java
@@ -64,9 +64,10 @@
UnresTest2.run();
} catch (VerifyError ve) {
System.out.println("Caught: " + ve);
- } catch (NoClassDefFoundError ncdfe) {
- /* UnresClass can cause desktop Java to freak out */
- System.out.println("NOTE: UnresTest2 not available");
+ } catch (Throwable th) {
+ // We and the RI throw ClassNotFoundException, but that isn't declared so javac
+ // won't let us try to catch it.
+ th.printStackTrace();
}
InternedString.run();
}