Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Nick Walters / Nick Walters (fedsol)
Created: 03/03/2013
Components: Language
Versions: 9.0.1
Failure Type: Non Functioning
Found In Build/Fixed In Build: 9.0.1 /
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Win 2008 Server R2
Vote Count: 0
Problem Description: A cfscript block longer than 45 lines causes error Invalid branch target position offset for jsr[168](3):-1: -1:
Steps to Reproduce: the following chunk of code works fine. If I add ONE MORE a=1; to it, it throws jsr[168] error.
<cfscript>
blnBreak = false;
if (qScores.AwayScore GT qScores.HomeScore) { //cos of ties
if (qScores.HomeTeam Is useTeamID) {
if (Not Len(streakStart)) {
streakStart = "L";
streakCount++;
} else {
if (streakStart Is "L")
streakCount++;
else {
blnBreak = true;
break;
}
}
} else {
if (Not Len(streakStart)) {
streakStart = "W";
streakCount++;
} else {
if (streakStart Is "W")
streakCount++;
else {
blnBreak = true;
break;
}
}
}
} else {
if (qScores.HomeTeam Is useTeamID) {
if (Not Len(streakStart)) {
streakStart = "W";
streakCount++;
} else {
if (streakStart Is "W")
streakCount++;
else {
blnBreak = true;
break;
}
}
}
a = 1;
a = 1;
a = 1;
}
</cfscript>
Actual Result:
jsr[168] compile error
Expected Result:
Previously compiled fine
Any Workarounds:
No workaround possible short of rewriting all cfscript blocks longer than the hard limit.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3511975
External Customer Info:
External Company:
External Customer Name: fedsol
External Customer Email:
External Test Config: CF 9.0.1 CHF3 Ent / Windows Server 2008 32-bit
Attachments:
Comments: