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: NUCCORE-946
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

Enhancement for JPA should throw JPA exception when encountering field not detached

Created: 29/Oct/12 08:24 PM   Updated: 01/Nov/12 12:05 PM   Resolved: 30/Oct/12 10:52 AM
Component/s: Enhancer
Affects Version/s: None
Fix Version/s: 3.2.0.m1


 Description  « Hide
Currently if a user is using JPA and tries to access a field that was not detached it replies with JDODetachedFieldAccessException. This ought to be a JPA exception in that case. Perhaps a more appropriate exception would be (java.lang.)IllegalAccessException

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 30/Oct/12 10:52 AM
SVN trunk adds an EnhancementNamer allowing us to change any name/class in the bytecode enhancement contract (while still following the contract), and changes the exception for JPA to be IllegalAccessException

Andy Jefferson added a comment - 30/Oct/12 03:04 PM
Similarly where JDOFatalInternalException was thrown for JDO, we now throw IllegalStateException for JPA