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 246101

Summary: Split if statement removes block comments
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 8.0.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2014-07-29 13:07:58 UTC
Split if statement removes block comments

have a code:
    public void method(boolean a, boolean b) {
        if(a/*a*/ || b/*b*/) {
            System.out.println("ok");
        }
    }

use Split if into two ifs

-> 
        if(a) {
            System.out.println("ok");
        } else if (b) {
            System.out.println("ok");
        }


Product Version: NetBeans IDE Dev (Build 20140728-44a39f86a838)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Martin Balin 2016-07-07 07:17:59 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss