Given the following snippet: ```@Grab('jakarta.fac...
# groovy
v
Given the following snippet:
Copy code
@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
Copy code
java.lang.IllegalAccessError: failed to access class jakarta.faces.component.UIInput$PropertyKeys from class Foo
Besides that STC should probably already fail (hence the issue), the first two `println`s work currently. Is there there some syntax trick (like
.@
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?