tracker issue : CF-3040889

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 81941:Setting variables in the preInsert or preUpdate functions of event handling often requires JavaCast

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Sam Farmer / Sam Farmer (sam.farmer.cfm)

Created: 02/02/2010

Components: ORM Support

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 270418

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 4

Problem:

Setting variables in the preInsert or preUpdate functions of event handling often requires JavaCast.  Desired behavior would be consistent with the rest of CF where JavaCast is not needed.
Method:

More information in this blog entry;http://samfarmer.instantspot.com/blog/2010/01/23/Using-ORM-Event-Handler-to-easily-and-automatically-add-audit-information
Result:

Error casting an object of type java.lang.String cannot be cast to java.lang.Boolean to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.java.lang.String cannot be cast to java.lang.Boolean

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3040889

External Customer Info:
External Company:  
External Customer Name: Sam Farmer
External Customer Email: 183F5AA44911D0AB992016B6
External Test Config: 02/02/2010

Attachments:

Comments: