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 181930 - "Suspicious call to java.util.Collection.remove" invalid/confused hint
Summary: "Suspicious call to java.util.Collection.remove" invalid/confused hint
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 182073 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-12 10:26 UTC by err
Modified: 2010-03-16 08:09 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 err 2010-03-12 10:26:39 UTC
with explanation of:
        Given object can not contain instances of int (expected ViMark)

This is the code fragment
        if (win.w_jumplist.size() > JUMPLISTSIZE) {
            win.w_jumplist.remove(0); <<<<<<<<<<<<<<<<<<<<<< hint
        }

and from elsewhere
    protected List<ViMark> w_jumplist = new LinkedList();
Comment 1 Jan Lahoda 2010-03-14 19:13:27 UTC
Thanks for the report. The bug was fixed altogether with bug #181580 by:
http://hg.netbeans.org/jet-main/rev/017c84739c0f
Test added by:
http://hg.netbeans.org/jet-main/rev/84dfdf62c851
Comment 2 Quality Engineering 2010-03-16 05:20:15 UTC
Integrated into 'main-golden', will be available in build *201003160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/017c84739c0f
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #181580: correcting pattern matching for patterns like $t.method() - need to check the type of $t, etc. Also fixes #181930.
Comment 3 Jan Lahoda 2010-03-16 08:09:58 UTC
*** Bug 182073 has been marked as a duplicate of this bug. ***