markus.dahm | 22 Jun 2002 14:42
Picon
Favicon

AW: BCELifier


> Hi,
> 
> I am using the BCELifier to get started with BCEL and it is really great. However I have problem with finally
and synchronized statements like the ones below. I get a NullPointerException which I suspect is due to
the handling of the Any Exception?
> Is there a workaound or a patch available?

I'll take a look at it as soon I get back from my 
vacation :-)

Cheers
  Markus

> 
> static void test0() {
>         System.out.println("enter test0");
>         try {
>             System.out.println("doing something test0");
>         } finally {
>             System.out.println("exit test0");
>         }
>     }
> 
>     static void test1() {
>         Object obj = new Object();
>         synchronized (obj) {
>             System.out.println("doing something test1");
>         }
>     }
> 
> Exception in thread "main" java.lang.NullPointerException
>         at org.apache.bcel.util.BCELifier.printType(BCELifier.java:262)
>         at org.apache.bcel.util.BCELFactory.updateExceptionHandlers(BCELFactory.java:340)
>         at org.apache.bcel.util.BCELFactory.start(BCELFactory.java:108)
>         at org.apache.bcel.util.BCELifier.visitMethod(BCELifier.java:213)
>         at org.apache.bcel.classfile.Method.accept(Method.java:115)
>         at org.apache.bcel.util.BCELifier.visitJavaClass(BCELifier.java:143)
>         at org.apache.bcel.util.BCELifier.start(BCELifier.java:89)
>         at org.apache.bcel.util.BCELifier.main(BCELifier.java:298)
> 
> Regards
> /Peter
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:bcel-user-unsubscribe <at> jakarta.apache.org>
> For additional commands, e-mail: <mailto:bcel-user-help <at> jakarta.apache.org>
> 
> 
--
berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse  <at> berlin.de sichern!
http://webmail.berlin.de

++++++++++++++++++++++++++++++++++++++++++++++++
7 CITIES SUMMER
AUCTION

Reisen Sie mit uns durch das Land der grenzenlosen Merkwürdigkeiten. Sieben Städte, zwölf
Mitbringsel und noch mehr Erlebnisse. Jeden Montag und Donnerstag eine neue Episode und eine neue
Auktion: http://www.BerlinOnline.de/auktion

Präsentiert von BerlinOnline und Lucky Strike Originals
++++++++++++++++++++++++++++++++++++++++++++++++

Gmane