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 67389 - [50cat] class keyword is used as input param when overriding methods
Summary: [50cat] class keyword is used as input param when overriding methods
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 09:06 UTC by jlaskowski
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 jlaskowski 2005-10-24 09:06:58 UTC
[ BUILD # : 200510201800 ]
[ JDK VERSION : 1.5.0_05 ]

When a superclass has a method with an input parameter of the java.lang.Class type and you use Source->Override Methods... menu the input parameter is class, which is a reserved keyword. It should rather use clazz.
Comment 1 Pavel Flaska 2005-10-25 09:19:40 UTC
This is reproducible only when library is compiled without -g (debug info, name
from superclass is not available) and sources for superclass are not available.
Otherwise, we use the superclass parameter's name. 
Comment 2 Pavel Flaska 2005-10-25 10:19:02 UTC
Checking in ./src/org/netbeans/modules/javacore/parser/ClassFileInfoUtil.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/ClassFileInfoUtil.java,v
 <--  ClassFileInfoUtil.java
new revision: 1.32; previous revision: 1.31
done