Community
Participate
Working Groups
Using M7, this would lead to an IllegalArgumentException. Try to add a field to an enum type that has enum constants. I will attach a test case and a patch.
Created attachment 21264 [details] Apply on HEAD of org.eclipse.jdt.core.tests.model
Created attachment 21265 [details] Apply on HEAD
Fixed and released in HEAD. Regression test added in org.eclipse.jdt.core.tests.model.CreateMembersTests.test005-006
Verified for 3.1 RC1 with build I20050527-0010.