I want to debug a static inner class, which is actually a Callable. Whenever I try to set a conditional breakpoint in Eclipse I get the breakpoint error:

The type com.sun.source.tree.Tree$Kind cannot be resolved. It is indirectly referenced from required .class files.

What is causing this error? Is it a bug in the class/package that uses com.sun.source.tree.Tree$Kind but does not provide it? How do I find out which class it is? How do I resolve it?


An example expression which should be correct is: return mRtx.getNode().getNodeKey() == 74;

I have changed it to mRtx.getNode().getNodeKey() == 74 but still the same error. Recently I've found the bug and simply used:

 if (mRtx.getNode().getNodeKey() == 74) {
     System.out.println("bla");
 }

and set a "normal" breakpoint on the "sysout" statement just in case someone has the same problem.

Edit
Report