Skip to content

java.lang.IllegalArgumentException for parameter type mismatches #795

Description

@giulianocosta

Hi,

Query raises java.lang.IllegalArgumentException when execute subquery with sum comparison like bellow.

QInventoryEntry ie = new QInventoryEntry("ie");
JPQLSubQuery queryChild = new JPASubQuery().from(ie);
criteria.add(queryChild.where(ie.product.eq($)).unique(ie.quantity.sum()).gt(1l))

A Exception raised by com.mysema.query.jpa.impl.JPAUtil class on setConstants method.

java.lang.IllegalArgumentException: Parameter value [1] did not match expected type [java.lang.Long (n/a)]

Version 3.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions