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 - ClassCastException: org.eclipse.persistence.jpa.jpql.parser.StateFieldPathExpression cannot be cast to org.eclipse.persistence.jpa.jpql.parser.IdentificationVariable
Summary: ClassCastException: org.eclipse.persistence.jpa.jpql.parser.StateFieldPathExp...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-23 13:36 UTC by terje7601
Modified: 2017-02-23 13:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 209664


Attachments
stacktrace (10.14 KB, text/plain)
2017-02-23 13:36 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
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