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.

Sort Order: Ascending order - Click to sort in descending order
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 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.