History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OGNL-6
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Unassigned
Reporter: Stephen Haberman
Votes: 0
Watchers: 1
Operations

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

When setting fields type conversion returning null falsly reports a NoSuchPropertyException

Created: 21/Sep/06 01:56 AM   Updated: 14/Apr/07 01:42 PM
Component/s: PropertyAccessors
Affects Version/s: 2.6.9
Fix Version/s: 2.7

File Attachments: 1. File fieldSetNull.diff (4 kb)



 Description  « Hide
When calling a method, if type conversion fails (returns null), a parameter is just set to null and then the method is called.

When setting a field, if type conversion (returns null), the field set is skipped altogether and a NoSuchPropertyException is thrown. Instead, the field should be set to null to be parallel with method calling and not report a false exception.

 All   Comments   Change History      Sort Order:
Jesse Kuhnert - [17/Feb/07 12:37 PM ]
Need more time to confirm this behavior.

Jesse Kuhnert - [14/Apr/07 01:42 PM ]
I changed this recently so that if type conversion fails a catchable exception is thrown.