Adam Cameron
<cfcomponent extends="Parent">
<cfscript>
static {
final static.MY_CONST = 3
}
</cfscript>
<!--- ... etc, rest of file --->
</cfcomponent>
And Lucee is going:
Error executing bundle - test.path.to.MyTest message: The static member [MY_CONST] does not exist in the Component [<http://path.to.My|path.to.My>]
It's simply not true. It's there. It's always there.
I recommend you guys add a lot of test cases around static support.zackster
05/16/2023, 8:02 AMzackster
05/16/2023, 12:47 PMAdam Cameron
Adam Cameron
include case I spotted before might be something to even consider. It's "lower level" than a CFMLer like me is really exposed to.zackster
05/16/2023, 3:47 PMzackster
05/16/2023, 3:49 PMzackster
05/16/2023, 3:50 PMzackster
05/16/2023, 3:51 PMAdam Cameron
Adam Cameron
Adam Cameron
Adam Cameron
zackster
05/16/2023, 4:40 PMAdam Cameron
Adam Cameron
final keyword, I think. If I remove that qualifier from both the static variables I'm testing... problem goes away...Adam Cameron