Community
Participate
Working Groups
3.3 M5 VM: IBM 1.5.0 SR4 I'm seeing some really weird behaviour: - set a method entry breakpoint on a local class's method - the whole VM slows down by a factor of 10 or so Turns out it's setting the breakpoint on the outer class (which doesn't have this method) instead of the inner one. More details: - in a class called TitlePart, there's the following method: private void addDragSupport(Form proxy) { DragSourceAdapter dragSourcelistener= new DragSourceAdapter() { @Override public void dragStart(DragSourceEvent event) { Object element= getElement(); // <snip> } }; // <snip> } - if I try to set a breakpoint on the first line of dragStart, i.e. the element assignment statement, all works well (no slowdown). In the Breakpoints view, this is indicated as: TitlePart$3 [line: 279] - dragStart(DragSourceEvent) - if instead I try to set a method entry breakpoint on dragStart, I see a 10x slowdown of the whole VM (it's not even hitting this method). In the Breakpoints view, this is indicated as: TitlePart [entry] - dragStart(DragSourceEvent) - Note the class shown is TitlePart, not TitlePart$3. TitlePart does not have a dragStart method. So I suspect: 1. debug info in the class is off 2. when we try to set an invalid method entry breakpoint in the VM, it doesn't fail but slows everything down, as if it's checking on every method entry
Basically, we don't currently support method entry breakpoints on anonymous types. *** This bug has been marked as a duplicate of bug 182650 ***