Community
Participate
Working Groups
Using 0703, try to compile the following code: public class Compile { public void foo() { } The compiler reports: Syntax error, insert "}" to complete ClassBody This is perfectly fine. If I use quickfix on this error, it suggests to surround with different statement, instead of simply inserting a closing brace.
*** Bug 54288 has been marked as a duplicate of this bug. ***
*** Bug 41134 has been marked as a duplicate of this bug. ***
not for 3.1. Even this bug sounds simple, but as we have no AST in these cases a lot of parsing is involved. Mostly a missing bracket is detected much later in the source, making the suggested correction look ridicolous.
Could look at this again now with statements recovery in the AST. Or just follow the advice to insert/delete a token and let the user find out whether it worked.
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.
.
*** Bug 409740 has been marked as a duplicate of this bug. ***
*** Bug 421042 has been marked as a duplicate of this bug. ***
*** Bug 13204 has been marked as a duplicate of this bug. ***
*** Bug 469457 has been marked as a duplicate of this bug. ***