我正在将应用程序从 MX7 升级到 9 并在我的 Mac 开发服务器上对其进行测试。我有一个带有大 cfswitch 的页面——大约 20 种不同的情况,但长度不超过 10-12 行。仅在 CF9 中,每当其中一种情况执行 cfinclude (几乎是所有情况)时,我都会收到如下错误:
org.apache.bcel.generic.ClassGenException: Invalid branch target position offset for jsr[168](3):-1: -1: astore[58](2) 27 at
cfindex2ecfm581352809._factor4(/Users/dlaughland/Workspace/abcapp/surveymanager /surveys/survey/index.cfm:34) at
cfindex2ecfm581352809._factor28(/Users/dlaughland/Workspace/abcapp/surveymanager/surveys/survey/index.cfm:33) at
cfindex2ecfm581352809.runPage(/Users/dlaughland/Workspace/abcapp/surveymanager/surveys/survey/index.cfm:1) at
cfApplication2ecfc1705547767$funcONREQUEST.runFunction(/Users/dlaughland/Worksp ace/abcapp/Application.cfc:215)
我已经广泛搜索,我能找到的最好的解释是 JDK 错误,据说在 MX7 中已修复!这是什么原因造成的?我如何解决它?这不是唯一一个带有大 cfswitch 的页面,所以我真的不想将所有内容重新写入 cfif 结构。