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 82566 - Complex Boolean Expressions transform suggests uncompilable code
Summary: Complex Boolean Expressions transform suggests uncompilable code
Status: RESOLVED DUPLICATE of bug 79018
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-12 20:54 UTC by _ gsporar
Modified: 2006-08-30 19:36 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 _ gsporar 2006-08-12 20:54:27 UTC
WinXP/JDK5u8/NB 5.0/Jackpot 1.4.4

Here's my sample source code:

   public static void main(String[] args) {
        Vector myVector = new Vector(10);
        int i = 0;
        if (myVector.size() == 0)
            i++;
    }

If I run the Complex Boolean Expressions query/transform on it Jackpot suggests
I should change the if check to be:

    if (!myVector.size())

which will not compile since Vector.size() returns an int.

I put this in as a P2, but if I find more like this, should they be P1s?
Comment 1 _ tball 2006-08-30 19:36:16 UTC
Converted sample code to regression test to verify fix to #79018.

*** This issue has been marked as a duplicate of 79018 ***