Bizarre BUG:
We get a stacktrace when we place the “setting” method first (before “this.name”). This does not happen when using the CFTAG version of APPLICATION.CFC, only in a CFSCRIPT version.
Stack Trace:
Lucee 6.0.0.585 Error (java.lang.NoSuchMethodError)
Message lucee.runtime.tag.Setting.setMetaData(Ljava/lang/String;Ljava/lang/Object;)V
Stacktrace The Error Occurred in
D:\LUCEE\tomcat\webapps\com-myapp\Application.cfc: line 9
9: setting enablecfoutputonly = true;
10: this.name = "myapp";
11:
This example causes the panic:
component {
setting enablecfoutputonly = true; // above "this.name"
this.name = "myapp";
}
This example does not:
component {
this.name = "myapp";
setting enablecfoutputonly = true; // below "this.name"
}
As mentioned, the CFTAG version of APPLICATION.CFC works regardless if the CFSETTING is above or below THIS.NAME.