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 48429 - Override/Implement Methods generates bogus parameter name
Summary: Override/Implement Methods generates bogus parameter name
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 00:16 UTC by Jesse Glick
Modified: 2007-09-26 09:14 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 Jesse Glick 2004-09-03 00:16:47 UTC
I had an empty subclass of DefaultListCellRenderer
and asked to override
getListCellRendererComponent. It generated the
nonsense signature

public java.awt.Component
getListCellRendererComponent(javax.swing.JList
javax.swing.JListParam, Object obj, int param,
boolean param3, boolean param4) {...}

(note the invalid name of the first parameter),
and then threw an InvalidObjectException from
MetadataElement._immediateComposite for good measure.
Comment 1 Jesse Glick 2004-09-03 00:18:32 UTC
Note also that all the param names are generic (do not inherit from
the super method as they should). Also the default super call was
given no arguments.
Comment 2 Daniel Prusa 2004-09-07 13:29:22 UTC
missing arguments in the defult super call is duplicate of issue 48542
invalid parameter name is duplicate of issue 48317
These bugs have been fixed.

It remains to fix param names (to inherit from the super method).
Comment 3 Daniel Prusa 2004-09-14 10:25:15 UTC
/cvs/java/src/org/netbeans/modules/java/tools/JMIInheritanceSupport.java,v
 <--  JMIInheritanceSupport.java
new revision: 1.7; previous revision: 1.6