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.
Summary: |
Code completion inside String literal causes StringIndexOutOfBoundsException |
Product: |
javaee
|
Reporter: |
crazyjavahacking |
Component: |
Persistence | Assignee: |
Sergey Petrov <sj-nb> |
Status: |
RESOLVED
DUPLICATE
|
|
|
Severity: |
normal
|
|
|
Priority: |
P2
|
|
|
Version: |
7.3 | |
|
Hardware: |
PC | |
|
OS: |
Windows 7 x64 | |
|
Issue Type:
|
DEFECT
|
Exception Reporter:
|
|
Attachments: |
Code completion stack trace
|
Created attachment 126067 [details] Code completion stack trace Code completion inside String literal causes StringIndexOutOfBoundsException. This does not happen for every caret position, but only on some positions. It looks like something with JPA (according to the stack trace). Reproducible with following source when placing caret just before or after the number in string literal: public class JavaApplication4 { public static void main(String[] args) throws IOException { new FileWriter("C:\\Users\\Martin Skurla\\Desktop\\FeCru-backup-20121015\\sql\\databaseMod.xml", false); } } NetBeans Dev 201210170002, JDK 6u34 32bit