Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326848 - ClassCastException PlusNode => AliaseableNode
Summary: ClassCastException PlusNode => AliaseableNode
Status: RESOLVED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-02 17:38 EDT by Doc CLA
Modified: 2022-06-09 10:33 EDT (History)
3 users (show)

See Also:


Attachments

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