Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 246107

Summary: [compiler] javac accepts extra ";"s on import statements. Eclipse doesn't
Product: [Eclipse Project] JDT Reporter: Zorzella Mising name <zorzella>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann, philippe_mulet
Version: 3.4   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Zorzella Mising name CLA 2008-09-03 12:38:27 EDT
Build ID: I20080617-2000

The following syntax on imports (extra ;s at the end of a line) gives an error in Eclipse, though javac is ok with it:

import java.lang.annotation.ElementType;;
import java.lang.annotation.Retention;
Comment 1 Philipe Mulet CLA 2008-09-04 05:05:09 EDT
Should make the grammar more resilient.
I also think we have a warning detection to upgrade then.
Comment 2 Eclipse Genie CLA 2020-04-09 09:13:55 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.