add flexibility how template classes get updated

Description

Lucee comes with 2 ways how to update template classes (classes created from .cfc/.cfm templates ):

  • update the existing class file

  • rename the underlying class by appending an appendix like "$1".

At the moment we only use the "rename" feature, what has some issues in some edge cases (see https://luceeserver.atlassian.net/browse/LDEV-2514#icft=LDEV-2514). The "update" feature is not used anymore at all, because it causes problem with JRE (not JDK)>10.

Lucee should use the "update" functionality until the "rename" feature is fixed and fallback to the "rename" feature only if the "update" feature is not supported by the environment.

Environment

None

Activity

Michael Offner 
10 February 2020 at 19:57

Alex Skinner 
3 February 2020 at 20:32

Nice thanks

Michael Offner 
3 February 2020 at 20:32

yes i’m aware of that, that fix will also (most likely) solve https://luceeserver.atlassian.net/browse/LDEV-2644 and https://luceeserver.atlassian.net/browse/LDEV-2514 , but because the underlying issue is not fixed only avoided, we do not mark this ticket as solved yet.

WIth Lucee 5.3.5 we are working on a fix for the “rename“ feature itself.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 3 February 2020 at 20:13
Updated 2 March 2020 at 20:08
Resolved 2 March 2020 at 20:08