This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 44068

Summary: [api] Incorrect signature to create enumeration
Product: editor Reporter: Jan Pokorsky <jpokorsky>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED WONTFIX    
Severity: blocker Keywords: API
Priority: P2    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Pokorsky 2004-05-31 19:26:09 UTC
EnumerationClass provides createEnumeration method
that requires superClassName and typeParameters
arguments. Since the enum syntax does not permit
any of these arguments they should be removed from
the api.
Comment 1 Martin Matula 2004-05-31 21:57:57 UTC
This is because Enum extends JavaClass. JMI does not allow to filter
out attributes from factory methods. In the future we will provide
more convenient and suitable factory operations, however the default
factories generated according to the JMI spec (as the one you are
referring to) cannot be removed.