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

Summary: Code completion inside String literal causes StringIndexOutOfBoundsException
Product: javaee Reporter: crazyjavahacking
Component: PersistenceAssignee: 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

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 ***