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.
Product Version: NetBeans IDE 7.4 (Build 201310101600) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 8 version 6.2 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\David\AppData\Roaming\NetBeans\7.4 Cache directory: C:\Users\David\AppData\Local\NetBeans\Cache\7.4 Steps to reproduce: 1. create method and paste inside this code: String[] str = new String[10]; String[] str1 = new String[12]; /*koment1 koment2 koment3*/ for (int i = 0; i < str.length; i++) { str1[i] = str[i]; } 2. Allow netbeans to replace your for loop with System.arraycopy() 3. Your previous comment disappears (this problem is also for single line comment)
Uses RewriteFix. Fixed in http://hg.netbeans.org/jet-main/rev/c6f518969ecb
verified in trunk
Grafted into 7.4 as #4d90f068f418
Integrated into 'releases/release74', will be available in build *201403261440* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/4d90f068f418 User: Svata Dedic <sdedic@netbeans.org> Log: #237313, #234134: rewrite fix preserves comments for (only!) the replaced nodes