Issue Details (XML | Word | Printable)

Key: NUCJPAQUERY-2
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Frank Schwarz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus JPA Query Processor

Static metamodel generator generates invalid java files for primitive types

Created: 04/Jan/11 12:15 PM   Updated: 27/Jan/11 05:15 PM   Resolved: 05/Jan/11 09:54 PM
Component/s: None
Affects Version/s: 2.1.0.release
Fix Version/s: 2.1.1, 3.0.0.m1

File Attachments: 1. Zip Archive metamodelgenerator_test.zip (5 kB)


Severity: Proof of Concept


 Description  « Hide
The metamodel generator generates:

{code:java}
public static volatile SingularAttribute<Person, long> id;
{code}

Which cannot be compiled by javac due to "long" (it should be "Long").


Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 05/Jan/11 06:58 PM
Testcase, as per the reporting guide ?

Frank Schwarz added a comment - 05/Jan/11 08:50 PM
Reproducer

Andy Jefferson added a comment - 05/Jan/11 09:54 PM
2.1 and 3.0 fixed this in SVN