Hi,

Just to clarify my previous post, I was still attempting to breakpoint on
the same line (System.out.println("Testing...")) not the initialiser.

                                Mike

-----Original Message-----
From: Lars Thuring [mailto:[EMAIL PROTECTED]]
Sent: 28 September 1999 16:09
To: Mike Swain (UK)
Cc: Jde (E-mail)
Subject: Re: Weird Breakpoint resolution failure

> 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

--

Reply via email to