Eclipse: Double semi-colon on an import
Posted
by
smp7d
on Stack Overflow
See other posts from Stack Overflow
or by smp7d
Published on 2011-11-14T17:28:37Z
Indexed on
2011/11/15
17:51 UTC
Read the original article
Hit count: 223
Using Eclipse, if I have an extra semicolon on an import line (not the last import line), I see a syntax error in the IDE. However, this compiles fine outside of the IDE (Maven in this case).
Example:
import java.util.ArrayList;; //notice extra semicolon
import java.util.List;
Does anyone else see this behavior? Why is this showing as a syntax error? I am working with someone who keeps pushing these this to source control and it is irritating me (they clearly aren't using Eclipse).
Full disclosure... I am using SpringSource Tool Suite 2.8.0.
© Stack Overflow or respective owner