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 - [api] Incorrect signature to create enumeration
Summary: [api] Incorrect signature to create enumeration
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2004-05-31 19:26 UTC by Jan Pokorsky
Modified: 2007-04-03 18:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.