Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326848

Summary: ClassCastException PlusNode => AliaseableNode
Product: z_Archived Reporter: Doc <julien.repond>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P2 CC: jamesssss, julien.repond, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Doc CLA 2010-10-02 17:38:30 EDT
JPQL Query : SELECT f1, f2, (f1.intValue + f2.intValue) AS computedColumn FROM MyClass f1, MyClass f2 WHERE f1.joinColumn = f2.joinColumn ORDER BY computedColumn DESC

This query throw a ClassCastException when trying to cast PlusNode of the SelectExpression to AliaseableNode. (Node return true on isAliasable but PlusNode doesn't implement the AliaseableNode interface)

PlusNode should be aliaseable...? (it's the only way to reuse it in an ORDER BY expression)
Comment 1 Tom Ware CLA 2010-10-14 13:23:20 EDT
Setting target and priority.  See the following page for details of the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines
Comment 2 James Sutherland CLA 2011-11-08 14:17:54 EST
This seems to work fine.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:16:18 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:33:57 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink