class s { int i; class inn extends i {} } interface IFoo { public static final double UNKNOWN = -1; } class Foo implements IFoo.UNKNOWN { // error should be shown here } class Foo2 extends IFoo.UNKNOWN { // error should be shown here } class Xss implements Integer.MAX_VALUE {} class Xss2 extends Integer.MAX_VALUE {}