Adam Cameron
component {
static {
final static.myStaticVar = "SET"
}
}
I Inferred it would be this:
<cfcomponent>
<cfstatic>
<cfset final static.myStaticVar = "SET">
</cfstatic>
</cfcomponent>
And whilst that almost works in Lucee, CF chokes with: Unknown tag: cfstatic.
Lucee fails on the final
modifier, I will raise this with them separately.rstewart
05/05/2022, 8:35 PM./cfusion/hf-updates/
and then apply the update from a command line. I’ve applied Update 3 w/o issue.
Does updating “packages” (new to CF 2021) work in a similar manner?Scott Bennett
05/06/2022, 1:39 PMAdam Cameron
https://i2.paste.pics/84ae311855506da886f46722ed3b48fb.png▾
Adam Cameron
function f(required string param1, required numeric param2, ... date param3) // does not work in CF2021. Does not error, but ignores the rest operator
Repro (https://trycf.com/gist/850662c058d620ce94f39e2c7e43737b/acf2021?theme=monokai):
function f(required string param1, required numeric param2, ... date param3) {
return arguments
}
result = f("a string", 42, createDate(2011,3,24), createDate(2016, 8, 17))
writeDump(var=result, label="actual")
expected = {
param1 = "a string",
param2 = 42,
param3 = [createDate(2011,3,24), createDate(2016, 8, 17)]
}
writeDump(var=expected, label="expected")
https://i2.paste.pics/88ef751197cd12fa1ea2ed1afb7b4f88.png▾
Adam Cameron
Rodney
05/10/2022, 2:16 PMMark Takata (Adobe)
05/10/2022, 2:59 PMbdw429s
05/10/2022, 6:05 PMrstewart
05/10/2022, 9:00 PM./cfusion/jetty/lib/ext/log4j-1.2.17.jar
). Is this expected? (Even if expected, it is not going to make our cybersecurity team happy at all.)seancorfield
Patrick S
05/12/2022, 2:45 PMScott Steinbeck
05/13/2022, 5:42 PMmalllory.woods
05/13/2022, 10:33 PMrstewart
05/16/2022, 4:35 PMLeon Miller-Out
05/16/2022, 4:55 PMMark Takata (Adobe)
05/16/2022, 6:15 PMMark Takata (Adobe)
05/17/2022, 4:18 PMMark Takata (Adobe)
05/18/2022, 4:03 PMSlackbot
05/18/2022, 4:06 PMseancorfield
gpickin
05/19/2022, 8:05 PMGareth
05/20/2022, 5:54 AMAdam Cameron
s = "abc"
s.each((c)=>{
//writeoutput(c.ucase()) // The ucase method was not found
writeOutput("#c.getClass().getName()#<br>") // java.lang.Character
writeOutput("#c.toString().ucase()#<br>") // sigh
})
writeOutput("<hr>")
a = s.split("")
c = a[1]
writeOutput("#c.ucase()#: #c.getClass().getName()#<br>") // A: java.lang.String
When using CF2021's string iteration functions, each element of the string is a java.lang.Character
, not a java.lang.String
. Ramifications: one cannot call string member functions on the char (obvs), eg: c.ucase()
. I say "obviously" because a Character is not a String, however it's NOT obvious in the context of CFML because Character is not a CFML data type, so there's no way a CFML function should return one / pass one.
I include as an example there that even Java doesn't split a string into individual Character objects. They're Strings.
I could not find a bug for this in the bugbase.
@Mark Takata (Adobe) just... why?Adam Cameron
tonyjunkes
05/25/2022, 2:47 PMMark Takata (Adobe)
05/25/2022, 4:45 PMMark Takata (Adobe)
05/25/2022, 5:13 PMryanguill
An error has occurred while generating UUID.
right before Failed to contact the Adobe Licensing server: java.lang.NullPointerException
and The license POST request has failed. Status Code: 400 Reason: Bad Request
. Does this ring a bell with anyone? 🧵chris_hopkins
05/27/2022, 9:32 AM