Community
Participate
Working Groups
class E{ void d(){ throws //syntax error } } the error message says that 'class' or 'interface' is expected there can be more than just these 2 keywords, that's one thing (any type/method/field name for instance) but what i really would like is "'throw' expected" - then, QuickFix could fix that typo for me same works the other way round too: void d() throw{ } the error says "'{' exoected" but 'throws' is fine too. it should be suggested to make fixing easier
Improving parser error messages is not on the 2.0 plan, we should definitely revisit this later on.
Reconsidering given new syntax error diagnosis heuristic
Fixed.
Verified.