Skip to content

JPQL and HQL parser issue with class projection when FQDN includes "exp" #3451

@jgooley-sh

Description

@jgooley-sh

Version: Latest 3.1.x

It appears that when using class based projection we can't have exp in our package name.

select new com.company.exp.thing.stuff.ClassName(
  e.id,
  cast(round(coalesce(SUM(e.amount), 0),2) as decimal) as amountTotal
)
from Experience e
group by e.id

Antlr output:

line 1:22 mismatched input '.' expecting '('
line 1:32 mismatched input '.' expecting {, ',', EXCEPT, FROM, GROUP, INTERSECT, ORDER, UNION, WHERE}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions