Issue Details (XML | Word | Printable)

Key: NUCENHANCER-58
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Christian Ernst
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Enhancer (ARCHIVED)

JDO Reference Enhancer generated private final void writeObject(ObjectOutputStream out) doesn't declare throws java.io.IOException

Created: 28/Sep/10 03:36 PM   Updated: 16/Oct/10 01:25 PM   Resolved: 12/Oct/10 02:08 PM
Component/s: ASM Enhancer
Affects Version/s: 2.0.0.release
Fix Version/s: 2.1.1

File Attachments: 1. File WriteObject.java.diff (1 kB)



 Description  « Hide


private final void writeObject(ObjectOutputStream out) {
jdoPreSerialize();
out.defaultWriteObject();
}

Christian Ernst added a comment - 28/Sep/10 04:18 PM
Also the generated writeObject(ObjectOutputStream out) should not be declared as final.

Andy Jefferson added a comment - 30/Sep/10 12:07 PM
You could attach a patch to the JIRA if wanting this, in the spirit of open source

Christian Ernst added a comment - 12/Oct/10 12:53 PM
Patch for org.datanucleus.enhancer.asm.method.WrritObject.java

Christian Ernst made changes - 12/Oct/10 12:53 PM
Field Original Value New Value
Attachment WriteObject.java.diff [ 11270 ]
Andy Jefferson added a comment - 12/Oct/10 02:08 PM
SVN trunk has this now, thx

Andy Jefferson made changes - 12/Oct/10 02:08 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.1.1 [ 11041 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 16/Oct/10 01:25 PM
Status Resolved [ 5 ] Closed [ 6 ]