Skip to content

[BUG] JSQLParser Version : 5.2 - GroupByElement::getGroupByExpressionList returns raw ExpressionList #2237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rolfwoll opened this issue May 9, 2025 · 0 comments

Comments

@rolfwoll
Copy link

rolfwoll commented May 9, 2025

It looks like usage of generics was introduced in an earlier version(probably 4.7?) which made GroupByElements list of Expressions be an ExpressionList<Expression>

However, the method getGroupByExpressionList returns the raw ExpressionList.

This causes problems when iterating through the list, so we need to explicitly cast the returned list to ExpressionList<Expression>

Since the internal List is of ExpressionList I would think the method getGroupByExpressionList should return ExpressionList<Expression> and not the raw ExpressionList

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant