DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
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").


Andy Jefferson made changes - 05/Jan/11 06:58 PM
Field Original Value New Value
Project DataNucleus API JPA [ 10171 ] DataNucleus JPA Query [ 10281 ]
Key NUCJPA-96 NUCJPAQUERY-2
Component/s Static Metamodel Processor [ 10250 ]
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

Frank Schwarz made changes - 05/Jan/11 08:50 PM
Attachment metamodelgenerator_test.zip [ 11321 ]
Andy Jefferson made changes - 05/Jan/11 09:24 PM
Affects Version/s 2.1.0.release [ 11057 ]
Environment Version is 2.2.0-release
Andy Jefferson added a comment - 05/Jan/11 09:54 PM
2.1 and 3.0 fixed this in SVN

Andy Jefferson made changes - 05/Jan/11 09:54 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.1.1 [ 11126 ]
Fix Version/s 3.0.0.m1 [ 11124 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 27/Jan/11 05:15 PM
Status Resolved [ 5 ] Closed [ 6 ]