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 45036 - "final" flag lost for String.hashCode and String.equals
Summary: "final" flag lost for String.hashCode and String.equals
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-16 17:08 UTC by Jan Lahoda
Modified: 2007-11-05 13:44 UTC (History)
1 user (show)

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 Lahoda 2004-06-16 17:08:20 UTC
NB trunk build 200406151800, JDK1.5.0-beta3-b55.

1. Into some class type:
"String s;
s."
2. Invoke code completion after the dot.
3. In the code completion view, find
equals(Object) and hashCode method and let the
javadoc view show the header of the methods. You
can see that these methods are not final. Also,
these two method are not bold-meaning that they
were not redefined in the String class (althought
they were).
4. Also the name of the argument of the equals
method changed. It was anObject and is obj now.

It worked as supposed (final equals, hashCode,
both redefined in String, argument "anObject") in
NB continuous build 20040615-1325.
Comment 1 Jan Lahoda 2004-06-16 17:11:48 UTC
Adding issues@editor.netbeans.org to CC.
Comment 2 Jan Lahoda 2004-06-16 17:18:43 UTC
The problem also occurs on NB continuous build 20040616-1506.
Comment 3 Pavel Flaska 2004-06-18 17:35:42 UTC
Seems to me that it is not bug in our infrastracture. See added test,
which tries to reproduce your bug. Reassigning to editor to evaluate.

Checking in test/cfg-unit.xml;
/cvs/java/javacore/test/cfg-unit.xml,v  <--  cfg-unit.xml
new revision: 1.12; previous revision: 1.11
done
Processing log script arguments...
More commits to come...
RCS file:
/cvs/java/javacore/test/unit/src/org/netbeans/jmi/javamodel/getters/StringMethodsSigTest.java,v
done
Checking in
test/unit/src/org/netbeans/jmi/javamodel/getters/StringMethodsSigTest.java;
/cvs/java/javacore/test/unit/src/org/netbeans/jmi/javamodel/getters/StringMethodsSigTest.java,v
 <--  StringMethodsSigTest.java
initial revision: 1.1
Comment 4 Dusan Balek 2004-06-21 09:34:15 UTC
Fixed in [maintrunk].

Checking in JMIUtils.java;
/cvs/editor/src/org/netbeans/modules/editor/java/JMIUtils.java,v  <--
 JMIUtils.java
new revision: 1.13; previous revision: 1.12
done
Comment 5 Jan Lahoda 2004-06-28 13:30:46 UTC
Seems OK in 200406271800.