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.
NetBeans IDE Dev (Build 200704011800) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Linux version 2.6.5-1.358 running on i386 en_US (nb); UTF-8 AIOOBE thrown when creating empty java file Steps to reproduce: 1) New File 2) Java Classes -> Empty Java File 3) confirm dialog -> java.lang.ArrayIndexOutOfBoundsException: 1 at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:149) at com.sun.tools.javac.util.Position.makeLineMap(Position.java:63) at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:1122)
Created attachment 40249 [details] full stacktrace
This also happens when updeating a versioned project and a new file is created on local. --- NetBeans IDE Dev (Build 200704161800) 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b04 SunOS version 5.10 running on sparc en (nb); ISO646-US
Increasing prority because it blocks UI automated tests.
Not reproducible on my machine.
I can reproduce it in current continuous build NetBeans IDE Dev (Build 20070419-1146) 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 Linux version 2.6.5-1.358 running on i386 en_US (nb); UTF-8 NetBeans IDE Dev (Build 20070419-1330) 1.6.0; Java HotSpot(TM) Client VM 1.6.0_02-b105 Windows XP version 5.1 running on x86 cs_CZ (nb); Cp1250
*** Issue 100859 has been marked as a duplicate of this issue. ***
Increasing priority to P1. Happens while viewing diff in "Search History" for dead revisions of versioned files.
Seatch history works fine for me. If you are incresing priority please add steps to reproduce. Creating empty java file works in current build as well. Clearly not P1
Reproducible for me while creating a New "empty" Java file (it contains one newline). Actually, the problem occurs for every Java file that is non-empty and contains only '\n' (easily reproducible easily in unit tests). So, if Peter considers this to be a showstopper, I do not have any objections -> P1.
Should be fixed now. Folks, please verify carefully. Thanks. Checking in javac-impl.jar; /cvs/java/external/javac-impl.jar,v <-- javac-impl.jar new revision: 1.46; previous revision: 1.45 done
Works fine for me now. Thanks for the fix. NetBeans IDE Dev (Build 20070425-0528) 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b101 Windows XP version 5.1 running on x86 en_GB (nb); Cp1252
*** Issue 102246 has been marked as a duplicate of this issue. ***
v.