Interesting Little CF Bug...

Neil Robertson-Ravo shared an interesting bug with me:

<cftry><cfcatch></cfcatch></cftry>

When run, this generates a error:

(class: cftest2ecfm370320109, method: runPage signature: ()Ljava/lang/Object;) Illegal exception table range

What makes this template interesting is that as soon as you add a line break after the first cftry, it goes away. Neil has entered a bug report for it.

Archived Comments

Comment 1 by JediHomer posted on 5/14/2004 at 2:59 PM

You can also put a comment in to fix it...

I tend to do

<CFCATCH><!--- Not Fatal ---></CFCATCH> to get round the problem