Community
Participate
Working Groups
3.3 In the following code: package org.hello; enum TestEnum { A { }, B ; public abstract boolean foo(); } there's an error on the opening bracket of test 'A {' saying: 'The type new TestEnum(){} must implement the inherited abstract method TestEnum.foo()' I think its strange to talk about a type 'new TestEnum' here. Wouldn't it be better to say: 'The enum constant 'A' must must implement the abstract method foo()'. It would also be good to put the error location on 'A', not on the bracket. See also bug 200016 for the message on 'foo'.
Technically, we treat it as an anonymous type (which it really is). I agree this is suboptimal for user perception.
See bug 200016 Released into HEAD for 3.4M3
Verified for 3.4M3 using I20071029-0010 build.