Vampire
08/27/2026, 9:11 AM@Grab('jakarta.faces:jakarta.faces-api:4.0.1')
import jakarta.faces.component.UIInput
@groovy.transform.CompileStatic
class Foo {
def foo() {
println(UIInput.PropertyKeys)
println(UIInput.PropertyKeys['localValueSet'])
println(UIInput.PropertyKeys.localValueSet)
}
}
new Foo().foo()
this fails at runtime at the third println (issues.apache.org/jira/browse/GROOVY-12310) with message
Besides that STC should probably already fail (hence the issue), the first two `println`s work currently. Is there there some syntax trick (likeCopy codejava.lang.IllegalAccessError: failed to access class jakarta.faces.component.UIInput$PropertyKeys from class Foo
.@ for private properties and .&...() for private methods) that would make this work while keeping the IDE reference to localValueSet intact instead of the String-y access without using a dynamic helper method?