Community
Participate
Working Groups
The JLS allows trailing semicolons on statements, but Eclipse reports them as unrechable code. Since this is a legal coding construct, and has no executible code it should not be reported as an error. At a minimum there should be a setting that will disable this case as an error.
Yes, but trailing semicolons still needs to be reachable. javac 1.4.2 reports these statements as errors. javac 1.3.1 doesn't report the statements as error. So if you set up the compliance to be 1.4, the Eclipse compiler reports it as error. If you set up the compliance to be 1.3, the Eclipse compiler ignores it. Close as INVALID. *** This bug has been marked as a duplicate of 11217 ***