tracker issue : CF-4203425

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

CF2018 : property named "name" in mappedsuperclass entity generate an error on second request

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Anthony DE MURTAS / ()

Created: 10/30/2018

Components: ORM Support

Versions: 13.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: ColdFusion 2018 Update 1 / 312339

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 1

Problem description:
I have an error when using a mappedsuperclass entity and a property named "name" within the mappedsuperclass entity.

Step to reproduce:
I have an ORM entity "classicModel" which extends a mappedsuperclass entity "classicSuperClass".

I have a property named "name" in the classicSuperClass entity.

I do an entityNew( "classicModel" ), then I do a serializeJSON() of the new entity.

At this time, everything is OK.

Then I do another entityNew( "classicModel" ) and I have an error "coldfusion.runtime.AttributeCollection cannot be cast to java.base/java.lang.String".

I had to reboot ColdFusion service because the error persists for all other requests.

I change the property name from "name" to "lastName" (or anything else) and all works fine.

The problem does not exist if the property named "name" is not set in the mappedsuperclass entity "classicSuperClass" and set into the persistent entity "classicModel".



Bug reproduced.
Vote by David R.
29878 | October 30, 2018 05:32:33 PM GMT