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 220264 - Code completion inside String literal causes StringIndexOutOfBoundsException
Summary: Code completion inside String literal causes StringIndexOutOfBoundsException
Status: RESOLVED DUPLICATE of bug 220110
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-17 10:52 UTC by crazyjavahacking
Modified: 2012-10-17 11:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Code completion stack trace (5.16 KB, text/plain)
2012-10-17 10:52 UTC, crazyjavahacking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crazyjavahacking 2012-10-17 10:52:49 UTC
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
Comment 1 Sergey Petrov 2012-10-17 11:14:58 UTC
thanks for test-case, tried before and after 20121015 in latest and it's fixed

*** This bug has been marked as a duplicate of bug 220110 ***