Copy link to clipboard
Copied
Hi,
we're in the process of porting our application to ColdFusion 2018. The staging server was on CF 2018 updater 4 and the site worked well. We eventully updated to updater 7 and the site stopped working with exception: Branch Target Offset Too Large for Short
The code was not modified, the JAVA version stayed the same - 11.0.4. Only the latest ColdFusion updater was installed.
We returned to updater 4 as this was working.
We got this exception with a different code in CF 11 in the past, which worked in CF 2016. We can maybe shorten the code (break it down, whatever). It's a surprise to see this exception out of a sudden, as it used to disappear using a newer updater.
Has anyone of you experienced the same exception, recently? Which updater (5, 6, 7) introduced this behaviour?
Copy link to clipboard
Copied
I haven't run into this problem, but my first guess would be to clear the cache of compiled scripts.
Dave Watts, Eidolon LLC
Copy link to clipboard
Copied
Let us know how that goes.
Copy link to clipboard
Copied
It is unlikely that the root of the problem is Update 7 of ColdFusion 2018. As you yourself say, the isuue arose in CF 11.
It might help to look at what Adam Presley's says in his blog. He found the cause to be a chain of if-else or switch-case statemen....
Copy link to clipboard
Copied
Thanks everyone for your replies.
Earlier today, I took the code and started up CommandBox. I planned to step through the versions, until the code broke. I started with 2018.4 and everything worked as I know it. I switched to 2018.5 and already got the error.
A chain of switch statements is indeed the reason for the exception and I can likely refactor the code and make it work.
Still, the code works in some CF versions.