From: SourceForge.net <no...@so...> - 2004-07-16 19:56:13
|
Bugs item #992535, was opened at 2004-07-16 14:56 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=992535&group_id=44253 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Patrick Kruse (pakruse) Assigned to: Nobody/Anonymous (nobody) Summary: Inner enum declaration fails Initial Comment: Code that compiles in the definitions pane with an inner enum fails when executed in the interactions pane, giving a NoClassDefFoundError. The code is as follows: public class C { public enum Suit { CLUBS, DIAMONDS, HEARTS, SPADES; } public static void m() { System.out.println(Suit.CLUBS); } } There is already a test case written for it, but it has never been run. Distinction1415 testEnum15 tests this exact line, and when written, was commented out because we did not yet have support for enums. I went back to add the test back in, now that we have support, and it failed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=992535&group_id=44253 |