Community
Participate
Working Groups
enums are allowed to have abstract method signatures, but the enum cannot be declared abstract. eclipse currently requires this, javac chokes
an example: public enum StopLight{ RED{ public StopLight next(){ return GREEN; } }, GREEN{ public StopLight next(){ return YELLOW; } }, YELLOW{ public StopLight next(){ return RED; } }; public abstract StopLight next(); }
Testcase is now properly supported.
Test: EnumTest#test048 *** This bug has been marked as a duplicate of 78916 ***