Bug 81329 - Disable sort member action for enums
Summary: Disable sort member action for enums
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Tobias Widmer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 88224
Blocks:
  Show dependency tree
 
Reported: 2004-12-15 16:39 EST by Dirk Baeumer CLA
Modified: 2005-03-16 14:27 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2004-12-15 16:39:33 EST
Tobias, can you please disable the sort member action for enums. JDT/Core can't
fix the problem.
Comment 1 Tobias Widmer CLA 2004-12-16 05:47:51 EST
Done
Comment 2 Dirk Baeumer CLA 2004-12-16 05:58:34 EST
See bug 80929 for details of the sorting problem.
Comment 3 Dirk Baeumer CLA 2004-12-16 09:11:37 EST
There is one case we miss (which isn't critical for M4 though) 

public class A {
	void bar() {
	}
	void foo() {
		class Local {
			static enum E {
				B, C;
			}
		}
	}
}

Although this is illegal Java code we still support sorting here.
Comment 4 Tobias Widmer CLA 2004-12-16 09:14:19 EST
ICompilationUnit#getAllTypes() does not return the nested local enum
Comment 5 Dirk Baeumer CLA 2004-12-16 13:03:07 EST
Verified on I200412160800
Comment 6 Olivier Thomann CLA 2005-03-16 13:45:36 EST
You mean sorting inside the illegal enum?
Comment 7 Olivier Thomann CLA 2005-03-16 14:27:35 EST
This needs to be enabled again once bug 88224 is fixed.