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 228316

Summary: JPQL CC doesn't work on multi-line queries/queries with "+" concatenation
Product: javaee Reporter: athompson <athompson>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description athompson 2013-04-05 23:12:48 UTC
It's understandable if CC doesn't work after concatenating a non-literal to a JPQL string, but simple "+" concatenation of literals (for example when breaking up a long JQPL query into multiple lines) should not affect CC.
Comment 1 athompson 2013-04-05 23:17:58 UTC
For example:

    EntityManager em = ...
    Query q = em.createQuery(
        "SELECT e " +
        "FROM MyEntity e " +
        "WHERE e.status.id = 1"
    );

Currently, CC only works on the first line, but there's no reason it should not work on all three lines.
Comment 2 Sergey Petrov 2013-09-06 11:37:43 UTC
yes, it's unsupported

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