Login

    Register

PROJECT CATEGORIES

 

JSONUtil
Project Home Blog Known Issues Contact Project

JSONUtil Issue: "serialize" and "deserialize" function names collide with Railo core functions

Name: "serialize" and "deserialize" function names collide with Railo core functions
ID: 3
Project: JSONUtil
Type: Bug
Area: Code
Severity: Normal
Status: Fixed
Related URL:
Creator: Adam Tuttle
Created: 07/29/09 9:36 PM
Updated: 10/25/09 9:06 PM
Description: Nathan, as you and I have discussed previously, the function names used currently collide with a pair of functions that exist in Railo, which causes an error when the component is instantiated. For the time being, my only thought is to rename the functions ("JSON[De]Serialize"?); but I'm wracking my brain trying to come up with something a bit more elegant. I thought it was somewhat important to document it here, at least, so that we don't forget about it.
History: Created by adam.tuttle (Adam Tuttle) : 07/29/09 9:36 PM

Comment by adam.tuttle (Adam Tuttle) : 07/29/09 9:38 PM
I just remembered: I know that the original intention of this component was to add functionality to match CF8 for CF7 users, but where I've been using it, and where I think it shines, is having consistent cross-app-engine serialization capability and format (just in case there's anything it's doing wrong, at least it's the same everywhere)... Just FYI. :)

Comment by nmische (Nathan Mische) : 07/30/09 8:26 AM
I think you sent me a fix for this, which is in SVN. I just haven't got around to updating the unit tests to work on Railo, which is why I haven't released it. If you want to update the unit tests let me know and I'll add you to SVN. (Also, I'm not against renaming the methods if that is what it takes.)

Comment by mjhagen (Mingo Hagen) : 08/26/09 11:44 AM
I fixed this by using this.serialize() on Railo.

Updated by nmische (Nathan Mische) : 10/25/09 9:06 PM

To add a comment to this bug, please login using the link above.