Why does a long cfc file work in CF8, but not CF9? Getting “Branch target offset too large for short” error

后端 未结 3 1407
日久生厌
日久生厌 2021-01-25 14:12

I have a fairly long cfc file, about 1800 lines long, that worked fine in ColdFusion 8, but after upgrading my development system to ColdFusion 9 and doing some testing I get a

3条回答
  •  失恋的感觉
    2021-01-25 14:40

    CF version: 10 OS: Linux CentOS 6.0

    Did face a similar issue where I had 1300+ lines of code in my cfc and one fine day I get the "Branch Target offset.." error. I tried

    1. Code Analyser to find any loopholes of legacy- DID NOT FIX

    2. Edited the cfc to trim down any last bit of redundant code or comments - reduced around 20+ lines of code - DID NOT FIX

    3. I split the code into 2 cfc and extended one to the other- DID NOT FIX

    4. I removed any unwanted dump of queries and arrays (part of testing) : THIS WORKED

    so I would suggest ensure you don't have any dumps of large data content. Hope this helps.

提交回复
热议问题