This compiles fine in Eclipse JDT but not on 1.6.30 or 1.7.25:
package doh;
import static doh.Wtf.InnerClass.innerclassMethod;
import java.io.Serializable;
public class Wtf {
static class InnerClass implements Serializable {
public static void innerclassMethod() {
}
}
}
With javac I get the following compile error:
error: cannot find symbol
static class InnerClass implements Serializable {
symbol: class Serializable
location: class Wtf
Commenting out the superfluous static import makes the code compile. So does reordering the import statements.