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-551
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Peter Dettman
Reporter: Dmitry J Voronov
Votes: 0
Watchers: 0

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

ClassUtils.getSetterMethodForClass( ... ) always returns null

Created: 16/Jul/10 03:57 PM   Updated: 20/Oct/10 09:29 AM   Resolved: 16/Jul/10 07:19 PM
Component/s: None
Affects Version/s: 2.2.0.m1
Fix Version/s: 2.2.0.m2

Datastore: PostgreSQL

 Description  « Hide
Expected: Setter method for a field name as formal parameter
Got: null

Reason: ClassUtils(666) cls.getDeclaredMethod(setterName, null);
cannot return any method with formal parameters, such as setter method.

Should specify valid parameter type instead of null.

Andy Jefferson added a comment - 16/Jul/10 04:27 PM
And the patch ?

Andy Jefferson added a comment - 16/Jul/10 04:27 PM
And the patch ?

Peter Dettman made changes - 16/Jul/10 06:03 PM
Field Original Value New Value
Assignee Peter Dettman [ peter.dettman ]
Peter Dettman added a comment - 16/Jul/10 07:19 PM
This is fixed in SVN.

getSetterMethodForClass needed an extra parameter for the type.

This affected one call site in IdentityUtils (relating to user-defined PKs), which had a couple of other problems, also fixed.

I added some more test cases for the various javabean-related methods in ClassUtils.

Peter Dettman made changes - 16/Jul/10 07:19 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.2.0.m2 [ 11022 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 20/Oct/10 09:29 AM
Status Resolved [ 5 ] Closed [ 6 ]