Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.2
    • Fix Version/s: 2.2.3
    • Component/s: Compiler
    • Labels:
      None

      Description

      Inspired by http://youtrack.jetbrains.com/issue/IDEA-121792

      Try to compile the following file:

      import scala.runtime.AbstractPartialFunction
      import scala.runtime.BoxedUnit
      
      public abstract class OnSuccess<T> extends AbstractPartialFunction<T, BoxedUnit> {
          public final boolean isDefinedAt(T t) {false}
      
          public abstract void onSuccess(T t)
      }
      

      Scala have to be in class path. Download it here.

      Get the following exception:

      Error:Groovyc: BUG! exception in phase 'semantic analysis' in source unit '/Users/maxmedvedev/IdeaProjects/inner-class/src/OnSuccess.groovy' 1
      at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:916)
      at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:574)
      at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:523)
      at org.jetbrains.groovy.compiler.rt.GroovyCompilerWrapper.compile(GroovyCompilerWrapper.java:54)
      at org.jetbrains.groovy.compiler.rt.DependentGroovycRunner.runGroovyc(DependentGroovycRunner.java:81)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.jetbrains.groovy.compiler.rt.GroovycRunner.main(GroovycRunner.java:100)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:121)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
      at org.codehaus.groovy.vmplugin.v5.Java5.makeInterfaceTypes(Java5.java:396)
      at org.codehaus.groovy.vmplugin.v5.Java5.configureClassNode(Java5.java:379)
      at org.codehaus.groovy.ast.ClassNode.lazyClassInit(ClassNode.java:258)
      at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:973)
      at org.codehaus.groovy.ast.ClassNode.getUnresolvedSuperClass(ClassNode.java:968)
      at org.codehaus.groovy.control.ResolveVisitor.checkCyclicInheritence(ResolveVisitor.java:1204)
      at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1181)
      at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:141)
      at org.codehaus.groovy.control.CompilationUnit$10.call(CompilationUnit.java:632)
      at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:912)
      ... 14 more

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              mxm-groovy Maxim Medvedev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: