"Mike Swain (UK)" schrieb:

> Hi JDE Gurus,
>
> I'm using JDE beta 10 on NT4, JDK1.2.2, JPDA1.0 and getting a strange
> failure to resolve breakpoints.
>
> Given this test code:
>
> public class Strange {
>
>         public static void main( String[] args ) {
>                 System.out.println("Testing...");
>         }
>
>         //static String test = "";
> }
>
> If I set a breakpoint on the println line everything works fine, the
> debugger stops etc.
>
> If I uncomment the static initialiser line for the test member, compile and
> restart, JDE fails to resolve/stop at the breakpoint. This problem seems to
> occur whenver a static member initialiser invokes a constructor. I'm not
> familiar enough with the internals of JDE or JPDA to point the accusing
> finger, but has anyone else had this problem?

I think this could be because initializers are folded into "invisible" code,
e.g. outside the methods.

HTH,
Lars

--


+--------------------------------------------------------+
| Lars Thuring                                           |
| Development Manager                                    |
|                                                        |
| Logopak Systeme               tel: (0) 4195 - 99750    |
| Dorfstrasse 40                fax: (0) 4195 - 1265     |
| 24628 Hartenholm           mailto: [EMAIL PROTECTED] |
| Germany                      http: www.logopak.com     |
+--------------------------------------------------------+

Reply via email to