I have some questions about coldfusion, is it easy...
# adobe
c
I have some questions about coldfusion, is it easy to update my system which is running on coldfusion 11 to 21 or even greater?
p
Might be easier to just use Commandbox to start up a variety of versions of CF server and you can use any one you want at any time by just starting and stopping the instances.
c
so i wouldnt have any problems to run my old code on a newer server?
a
There are some features which have been removed in the 2025 release of ColdFusion but most code will likely run without any issues.
new Query(...)
is something that springs to mind as being removed, but it's quite possible your code doesn't use that anyway.
Core support for 2021 ends this year, so you should be looking at 2023 or 2025 really.
As Patrick says, it's very easy to spin up different server versions (major and minor) to test against using Commandbox
m
One item which might come up is if you are not explicitly scoping your variables you would have to add a java argument (but it is HIGHLY recommended you refactor your code to scope them).
a
That's a good shout ☝️ You may also hit things like
hash
not using
md5
anymore.
1
c
Alright thank you for this helpful information
l
In addition to the CodeAnalyzer, I’d also look at Ortus Solutions’ CodeChecker. Its an excellent code quality tool. https://www.forgebox.io/view/CodeChecker