> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
--
berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @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
++++++++++++++++++++++++++++++++++++++++++++++++


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to