[ 
https://issues.apache.org/jira/browse/GROOVY-12719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18140664#comment-18140664
 ] 

ASF GitHub Bot commented on GROOVY-12719:
-----------------------------------------

testlens-app[bot] commented on PR #3253:
URL: https://github.com/apache/groovy/pull/3253#issuecomment-6720127761

   ## 🚨 Jobs failed without executing tests 🚨
   
   ### Failed Jobs without Test Failures
   
   ❌ [Check licenses / test 
\(ubuntu-latest\)](https://github.com/apache/groovy/actions/runs/42469658842/job/128697228580?pr=3253)
   ❌ [CodeQL / Analyze \(java, 
21\)](https://github.com/apache/groovy/actions/runs/42469658910/job/128697228815?pr=3253)
   ❌ [Generate SNAPSHOT artifacts / 
dist](https://github.com/apache/groovy/actions/runs/42469658801/job/128697228350?pr=3253)
   ❌ [Generate SNAPSHOT distributions / 
dist](https://github.com/apache/groovy/actions/runs/42469658779/job/128697228269?pr=3253)
   ❌ [Native Image Metadata Check / 
native-check](https://github.com/apache/groovy/actions/runs/42469658824/job/128697228467?pr=3253)
   ❌ [Performance check / 
test](https://github.com/apache/groovy/actions/runs/42469658791/job/128697228376?pr=3253)
   ❌ [jmh / test \(bench, 
\\\\.bench\\\\.\)](https://github.com/apache/groovy/actions/runs/42469658838/job/128697228544?pr=3253)
   ❌ [jmh / test \(core-ag, 
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42469658838/job/128697228535?pr=3253)
   ❌ [jmh / test \(core-hz, 
\\\\.perf\\\\.[H-Z]\)](https://github.com/apache/groovy/actions/runs/42469658838/job/128697228630?pr=3253)
   ❌ [jmh / test \(grails-ad, 
\\\\.perf\\\\.grails\\\\.[A-D]\)](https://github.com/apache/groovy/actions/runs/42469658838/job/128697228347?pr=3253)
   ❌ [jmh-classic / 
summary](https://github.com/apache/groovy/actions/runs/42469658800/job/128697317908?pr=3253)
   ❌ [jmh-classic / test \(bench, 
\\\\.bench\\\\.\)](https://github.com/apache/groovy/actions/runs/42469658800/job/128697228438?pr=3253)
   ❌ [jmh-classic / test \(core-ag, 
\\\\.perf\\\\.[A-G]\)](https://github.com/apache/groovy/actions/runs/42469658800/job/128697228517?pr=3253)
   ❌ [jmh-classic / test \(core-hz, 
\\\\.perf\\\\.[H-Z]\)](https://github.com/apache/groovy/actions/runs/42469658800/job/128697228275?pr=3253)
   ❌ [jmh-classic / test \(grails-ad, 
\\\\.perf\\\\.grails\\\\.[A-D]\)](https://github.com/apache/groovy/actions/runs/42469658800/job/128697228485?pr=3253)
   ❌ [jmh-classic / test \(grails-ez, 
\\\\.perf\\\\.grails\\\\.[E-Z]\)](https://github.com/apache/groovy/actions/runs/42469658800/job/128697228497?pr=3253)
   
   🏷️ Commit: bca51d286b88ad37292ded704158eab5b963525a
   ▶️ Tests:  0 executed
   🟡 Checks: 18/26 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/)._
   




> A dynamic new of a constructor the JVM refuses fails with GroovyBugError 
> under invokedynamic
> --------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-12719
>                 URL: https://issues.apache.org/jira/browse/GROOVY-12719
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 5.0.8, 6.0.0
>            Reporter: Scott Murphy Heiberg
>            Priority: Major
>
> {code:groovy}
> class C extends ObjectInputStream {
>     static ObjectInputStream make() {
>         new ObjectInputStream()
>     }
> }
> C.make()
> {code}
> *Actual:* {{org.codehaus.groovy.GroovyBugError: BUG! UNCAUGHT EXCEPTION: 
> member is protected: java.io.ObjectInputStream.<init>}}
> *Expected:* {{GroovyRuntimeException: could not access constructor: protected 
> java.io.ObjectInputStream()}}, as without invokedynamic.
> Cause: the constructor selector in {{Selector}} unreflects the selected 
> constructor with the lookup of the calling class and turns an 
> {{IllegalAccessException}} into {{GroovyBugError}}. The property selectors 
> treat that as an access-control outcome since GROOVY-12314.
> Verified on 5.0.8, 6.0.0 and master, on JDK 21.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to