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 181580 - Incorrect matching of some patterns
Summary: Incorrect matching of some patterns
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-05 07:52 UTC by Jan Lahoda
Modified: 2010-03-16 05: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 Jan Lahoda 2010-03-05 07:52:11 UTC
[recent sources]

Consider pattern like:
$s.wait() :: $s instanceof java.util.concurrent.locks.Condition;;

This pattern will be matched for the following code:
Object o;
o.wait();

Although this code should obviously not match this case.
Comment 1 Quality Engineering 2010-03-08 11:22:03 UTC
Integrated into 'main-golden', will be available in build *201003081350* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c44be71337e2
User: Jan Lahoda <jlahoda@netbeans.org>
Log: Two new hints, workarounding #181580.
Comment 2 Jan Lahoda 2010-03-14 19:10:51 UTC
Corrected by:
http://hg.netbeans.org/jet-main/rev/017c84739c0f
Comment 3 Quality Engineering 2010-03-15 04:42:26 UTC
Integrated into 'main-golden', will be available in build *201003150200* 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 4 Quality Engineering 2010-03-16 05:14:27 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.