rodel30
06/17/2025, 7:04 PMrodel30
06/17/2025, 7:05 PMstatic {
public foo = 'bar';
public static.foo2 = 'bar2';
}
public static.foo3 = 'bar3';
But all attempts to reference them via componentname::foo componentname::foo2 componentname::foo3 errorRodney
06/17/2025, 7:07 PMcomponent {
static {
public foo = "bar';
public bar = "foo";
}
}rodel30
06/17/2025, 7:10 PMrodel30
06/17/2025, 7:16 PM<cfcomponent name="test">
<cfscript>
static {
public foo = 'bar'; // This doesn't work
}
public static string function bar(){ return 'foo'; } //This still works
</cfscript>
</cfcomponent>
test::foo throws an error, test::bar() returns fooDave Merrill
06/17/2025, 7:33 PMDave Merrill
06/17/2025, 7:34 PMMark Takata (Adobe)
06/17/2025, 8:30 PMnimitsharma
06/18/2025, 3:32 AMVikas Yadav
06/18/2025, 4:26 AMrodel30
06/18/2025, 3:46 PMDave Merrill
06/18/2025, 4:23 PMMark Takata (Adobe)
06/18/2025, 4:25 PMDave Merrill
06/18/2025, 5:02 PMrodel30
06/18/2025, 5:03 PM<static> block that can have <cfset public foo = 'bar'> in it?Rodney
06/18/2025, 5:42 PM<cfset public static.foo = 'bar'> instead of putting it in a static block.rodel30
06/18/2025, 5:49 PMVikas Yadav
06/21/2025, 9:41 AMrodel30
06/23/2025, 12:39 PM2021,0,20,330407 Enterprise edition. We're utilizing the hf202100-8888888.jar for the unscoped variable reference logging as well, if that matters.nimitsharma
06/25/2025, 10:41 AMrodel30
06/25/2025, 2:31 PMCF-4226965rodel30
06/25/2025, 2:32 PMpriyank_adobe
06/25/2025, 2:51 PM