]> source.dussan.org Git - aspectj.git/commitdiff
fix for Bugzilla Bug 70201
authoracolyer <acolyer>
Tue, 10 Aug 2004 08:18:30 +0000 (08:18 +0000)
committeracolyer <acolyer>
Tue, 10 Aug 2004 08:18:30 +0000 (08:18 +0000)
  Branch target offset too large for short

weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java

index 8cc7a1665f11a030d2c3525f3526013f3ff75e97..d50c5b5923c96d66e263da4c5b7b66bda3723a83 100644 (file)
@@ -331,7 +331,10 @@ public final class LazyMethodGen {
                                                                          this.getName(),
                                                                          e.getMessage()),
                        this.getMemberView() == null ? null : this.getMemberView().getSourceLocation(), null);
-               throw e;
+//             throw e; PR 70201.... let the normal problem reporting infrastructure deal with this rather than crashing.
+               body = null;
+                   MethodGen gen = pack();
+                   return gen.getMethod();
        }
     }