Community
Participate
Working Groups
It appears that when the following code is parsed using parseCompilationUnit (..), with bindings, the CompilationUnit node return does not have any messages or problems attached to it. No messages or problems are returned by getMessages or getProblems when these methods are invoked on the node. In the editor, no error is detected by the on-the-fly error detection when I type the following code into the editor and don't save. It is invalid code and results in a reported compile error when it saved and built. package p; public class A { void foob() { int b= b; } }
This is a consequence of bug 24773. The error you mention is reported later in the compilation process. Fixing bug 24773 will fix this one as well. I have a fix ready, but I am waiting M2 to be out to release it in 2.1 stream.
Fixed and released in 2.1 stream. Regression tests added.
Verified.