Disabling render function



I’m hoping to make the switch from an ageing ColdFusion implementation to Lucee for one of our projects.

We use a third party library (not coded by us) that uses a user function called “render”.

Running it on CF, it’s fine. On Lucee 5 it crashes because there’s a new in-built function called “render”.

I’d have to go though some hoops to start rewriting the library - the easiest option would be to simply disable the function “render” as we’re very unlikely to ever use it.

Is this possible?



Depends how it’s called. If it is inside a cfc and you are calling like:

var content = render();

you can simply add this. to the start:

var content = this.render();


It is, and of course that works. Thank you.