HQL: select new CatProjectionBean('fake_cat', 'fake_owner', 12.5) from Cat c Java: public CatProjectionBean(String name, String ownerName, Double weight) {} This fails in 6 because 12.5 is parsed as float literal. When parsing a HQL constructor invocation, we should be a bit lenient though and allow parsing the literal also as Double. |