Single comments on the method declaration say the following:
// To maintain full signature compatibility with 1.5, and to improve the // clarity of the generated javadoc (see 6287639: Abstract methods in // enum classes should not be listed as abstract), method convert // etc. are not declared abstract but otherwise act as abstract methods.
Here 6287639 is the error identifier that says:
JDK-6287639: abstract methods in enumeration classes should not be listed as abstract
Now consider the following enum , treating it as a class and each enum constant as Object , it is clear that if we create an Object something abstract, we must provide an implementation and avoid this convert not abstract .
enum Blocks { A1, B1, C1;
source share