Community
Participate
Working Groups
I think now it is possible with condition breakpoint on the parent class. Will be greate if Eclipce will handle it automatically. E.g. in the outline view select inherited method and add breakpoint to it or add special section to condition breakpoints.
Please explain the requirement.
Imagine I want to add new breakpoint to the toString method for the library class (e.g. java.util.ArrayList<E>). How can I do it? The same question how I can add a breakpoint to default constructor of the same class (java.util.ArrayList<E>). I select the class just for example to demonstrate the issue.
We can create a breakpoint for the classes which have been compiled with Line numbers. We can create a breakpoint at toString or default constructor.
I am sorry, but how I can setup a breakpoint for toString method in java.util.ArrayList<E> or, for example, in such class: public class A { }
the same question for a default constructor.
default constructor is defined for AbstractList<E> and not ArrayList, Similarly toString is defined in AbstractCollection class. You can open the class file by the shortcut (Ctrl + Shift + T)
Sorry, but with you solution the program will stop on any calling of toString for ANY child class. The goal is to to break the program execution only in case of calling the toString of ArrayList instance. Hope it is clear now. As I described in my initial comment, it is possible only if I will set the breakpoint in the parent class (as you correctly mentioned in your last comment) and will add the condition (this instanceof ArrayList). The intention of this issue is somehow to automate this process.
Oh!! Do you mean Bug 209460 ?
Yes, exactly it.
*** This bug has been marked as a duplicate of bug 209460 ***