Bug 478649: [otre] weaver chokes on ChooseWorkspaceDialog after update
to Java 8
- convert exception to be catchable by OTWeavingHook
diff --git a/plugins/org.eclipse.objectteams.otre/src/org/eclipse/objectteams/otre/jplis/ObjectTeamsTransformer.java b/plugins/org.eclipse.objectteams.otre/src/org/eclipse/objectteams/otre/jplis/ObjectTeamsTransformer.java
index ca4e780..13c38a9 100644
--- a/plugins/org.eclipse.objectteams.otre/src/org/eclipse/objectteams/otre/jplis/ObjectTeamsTransformer.java
+++ b/plugins/org.eclipse.objectteams.otre/src/org/eclipse/objectteams/otre/jplis/ObjectTeamsTransformer.java
@@ -148,7 +148,7 @@
 			} catch (ClassFormatException e) {
 				// CFE doesn't show the class name, so at least print it to console:
 				System.err.println(e.getMessage()+", offending className: "+className);
-				throw e;
+				throw new IllegalClassFormatException("BCEL cannot parse class "+className+": "+e.getMessage());
 			} finally {
 				if (is != null)
 					try {