Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8836

'semantic analysis' fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 3.0.0-alpha-3, 2.5.2
    • None
    • groovy-runtime

    Description

      in intellij: Tried running following script:

      def arr = (0..10).toArray()
      
      def reverted = Arrays.copyOfRange arr, arr.length, 0
      
      println reverted
      

      Got following stack:

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/ ... /groovy/3.0.0-alpha-3/groovy-3.0.0-alpha-3.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      Caught: BUG! exception in phase 'semantic analysis' in source unit '... \.IntelliJIdea2018.2\config\scratches\scratch.groovy' null
      BUG! exception in phase 'semantic analysis' in source unit '... \.IntelliJIdea2018.2\config\scratches\scratch.groovy' null
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Caused by: java.lang.UnsupportedOperationException
         at groovyjarjarasm.asm.ClassVisitor.visitNestMemberExperimental(ClassVisitor.java:248)
         at groovyjarjarasm.asm.ClassReader.accept(ClassReader.java:651)
         at groovyjarjarasm.asm.ClassReader.accept(ClassReader.java:391)
         ... 3 more
      

      I know nothing about Groovy, but it said 'Bug!', so I report

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lilpump Behruz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: