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

Summary: Complex Boolean Expressions transform suggests uncompilable code
Product: contrib Reporter: _ gsporar <gsporar>
Component: JackpotAssignee: issues@contrib <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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 ***