As confusing as it seems, this is mandated by the JPA spec - specifically section 6.5.8.1 (Result Types of Expressions) in 2.1