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 269907

Summary: ClassCastException: org.eclipse.persistence.jpa.jpql.parser.StateFieldPathExpression cannot be cast to org.eclipse.persistence.jpa.jpql.parser.IdentificationVariable
Product: javaee Reporter: terje7601
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal CC: Alniks, helderneres
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209664
Attachments: stacktrace

Description terje7601 2017-02-23 13:36:42 UTC
Build: NetBeans IDE Dev (Build 201702140002)
VM: OpenJDK 64-Bit Server VM, 25.121-b14, OpenJDK Runtime Environment, 1.8.0_121-b14
OS: Linux

User Comments:
terje7601: browsing JPA code

GUEST: a

terje7601: I had just opened a JPA entity class

Alniks: when working with maven project

terje7601: Browsing JPA entities

helderneres: Open a class mapped with jpa annotations into editor.




Stacktrace: 
java.lang.ClassCastException: org.eclipse.persistence.jpa.jpql.parser.StateFieldPathExpression cannot be cast to org.eclipse.persistence.jpa.jpql.parser.IdentificationVariable
   at org.eclipse.persistence.jpa.jpql.AbstractSemanticValidator.validateComparisonExpression(AbstractSemanticValidator.java:986)
   at org.eclipse.persistence.jpa.jpql.tools.DefaultSemanticValidator.validateComparisonExpression(DefaultSemanticValidator.java:549)
   at org.eclipse.persistence.jpa.jpql.AbstractSemanticValidator.visit(AbstractSemanticValidator.java:2709)
   at org.eclipse.persistence.jpa.jpql.parser.ComparisonExpression.accept(ComparisonExpression.java:71)
   at org.eclipse.persistence.jpa.jpql.parser.AbstractConditionalClause.acceptChildren(AbstractConditionalClause.java:72)
   at org.eclipse.persistence.jpa.jpql.AbstractValidator.visit(AbstractValidator.java:743)
Comment 1 terje7601 2017-02-23 13:36:45 UTC
Created attachment 163699 [details]
stacktrace