Community
Participate
Working Groups
If you enter something like this construct in a java file the validator doesnt point out the the missing brace but confuses the user by showing totally different (non-existing) errors for(;;) { if(false) { if(true) System.out.println("temp"); else System.out.println("temp"); }
Core issue. Reassigning.
Could you please describe what you are doing? Steps to reproduce? Build id?
3.1.0 Final I20050627-1435 If you have a sufficiently long java file and such a construct with syntax errors exists, you go on a wild goose chase before finding the actual error. (can take 10-15 mins on a large java file). Validator doesnt show indicate proper error. I guess the partitioner is getting confused..
Could you please provide a test case?
Trying to insert this construct in the Parser class (9401 lines), I could immediately locate the error. I got an error: Syntax error on token(s), misplaced construct(s) And clicking on this error, I went immediately to the incorrect code. Now it is possible that in your case, it is more difficult to locate the error. But we would like your test case in order to find out if we can improve the error recovery.
I will post a test case soon.
Closing as REMIND. Error recovery has been added in 3.2 and should make this case obsolete. Please let us know if you still get issue on 3.2.1.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.