[
https://issues.apache.org/jira/browse/GROOVY-12569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18140667#comment-18140667
]
ASF GitHub Bot commented on GROOVY-12569:
-----------------------------------------
testlens-app[bot] commented on PR #3098:
URL: https://github.com/apache/groovy/pull/3098#issuecomment-6720141498
## 🚨 Jobs failed without executing tests 🚨
### Failed Jobs without Test Failures
❌ [Build and test / lts \(21,
ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42469658063/job/128697226262?pr=3098)
❌ [Build and test / lts \(25,
ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42469658063/job/128697226270?pr=3098)
❌ [Check licenses / test
\(ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42469658113/job/128697226418?pr=3098)
❌ [CodeQL / Analyze \(java,
21\)](https://github.com/apache/groovy/actions/runs/42469658133/job/128697226375?pr=3098)
❌ [Generate SNAPSHOT artifacts /
dist](https://github.com/apache/groovy/actions/runs/42469658380/job/128697227623?pr=3098)
❌ [Generate SNAPSHOT distributions /
dist](https://github.com/apache/groovy/actions/runs/42469658094/job/128697225802?pr=3098)
❌ [Lint gate /
lint](https://github.com/apache/groovy/actions/runs/42469658104/job/128697226092?pr=3098)
❌ [Native Image Metadata Check /
native-check](https://github.com/apache/groovy/actions/runs/42469658138/job/128697226722?pr=3098)
❌ [Performance check /
test](https://github.com/apache/groovy/actions/runs/42469658120/job/128697225926?pr=3098)
❌ [jmh /
summary](https://github.com/apache/groovy/actions/runs/42469658152/job/128697350594?pr=3098)
❌ [jmh / test \(bench,
\\\\.bench\\\\.\)](https://github.com/apache/groovy/actions/runs/42469658152/job/128697226730?pr=3098)
❌ [jmh / test \(core-ag,
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42469658152/job/128697226526?pr=3098)
❌ [jmh / test \(core-hz,
\\\\.perf\\\\.[H-Z]\)](https://github.com/apache/groovy/actions/runs/42469658152/job/128697226741?pr=3098)
❌ [jmh / test \(grails-ad,
\\\\.perf\\\\.grails\\\\.[A-D]\)](https://github.com/apache/groovy/actions/runs/42469658152/job/128697226756?pr=3098)
❌ [jmh / test \(grails-ez,
\\\\.perf\\\\.grails\\\\.[E-Z]\)](https://github.com/apache/groovy/actions/runs/42469658152/job/128697226816?pr=3098)
❌ [jmh-classic /
summary](https://github.com/apache/groovy/actions/runs/42469658124/job/128697345471?pr=3098)
❌ [jmh-classic / test \(bench,
\\\\.bench\\\\.\)](https://github.com/apache/groovy/actions/runs/42469658124/job/128697226269?pr=3098)
❌ [jmh-classic / test \(core-ag,
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42469658124/job/128697226285?pr=3098)
❌ [jmh-classic / test \(core-hz,
\\\\.perf\\\\.[H-Z]\)](https://github.com/apache/groovy/actions/runs/42469658124/job/128697226162?pr=3098)
❌ [jmh-classic / test \(grails-ad,
\\\\.perf\\\\.grails\\\\.[A-D]\)](https://github.com/apache/groovy/actions/runs/42469658124/job/128697226365?pr=3098)
❌ [jmh-classic / test \(grails-ez,
\\\\.perf\\\\.grails\\\\.[E-Z]\)](https://github.com/apache/groovy/actions/runs/42469658124/job/128697226320?pr=3098)
🏷️ Commit: 406ce7e115b104bb5d4327ccaaf1f6a4f60259ff
▶️ Tests: 0 executed
🟡 Checks: 23/27 completed
### Rerun Controls
Click the checkbox to trigger a rerun:
🔲 **Rerun jobs**
---
_Learn more about TestLens at
[testlens.app/docs](https://testlens.app/docs/features/pr-comment/)._
> SC: a package-private class of another GroovyClassLoader compilation fails
> with IllegalAccessError where dynamic code works
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-12569
> URL: https://issues.apache.org/jira/browse/GROOVY-12569
> Project: Groovy
> Issue Type: Bug
> Components: Static compilation
> Affects Versions: 6.0.0
> Reporter: Scott Murphy Heiberg
> Priority: Major
>
> A class that is not public is accessible only within its run-time package
> (JVMS 5.4.4), and the JVM checks that wherever an instruction names the
> class. Dynamic code uses a package-private class of an earlier
> {{GroovyShell}} parse, or of a library used by a script, without naming it.
> Statically compiled code names it and fails:
> {code:groovy}
> def shell = new GroovyShell()
> shell.evaluate '''package p
> @groovy.transform.PackageScope class Hidden implements Runnable {
> static String sm() { 'sm' }
> String name
> String own() { 'own' }
> void run() { }
> }
> true
> '''
> shell.evaluate '''package p
> @groovy.transform.CompileStatic
> def test() {
> def h = new Hidden(name: 'x')
> h.run()
> Runnable r = h
> [Hidden.sm(), h.own(), h.name]
> }
> test()
> ''' // each line fails with IllegalAccessError; without @CompileStatic it
> works
> {code}
> Expected: with the option {{CompilerConfiguration.RUNTIME_PACKAGE_CHECK}}
> (GROOVY-12568), an instruction that names such a class is reported when the
> class is generated. A value of the class that no instruction names keeps
> working. Classes compiled to class files are used directly.
> PR: https://github.com/apache/groovy/pull/3098
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)