Bug#877799: groovy: GCJ java.lang.ArrayIndexOutOfBoundsException

Aaron M. Ucko ucko at debian.org
Thu Oct 5 19:20:25 UTC 2017


Package: groovy
Version: 2.4.8-2
Severity: important
Tags: upstream
User: debian-hppa at lists.debian.org
Control: affects -1 src:kodi

Builds of kodi for hppa (admittedly not a release architecture) have
been failing because Groovy reports an ArrayIndexOutOfBoundsException:

  # Work around potential groovy bug reported at: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733234
  groovyc -cp "/usr/share/java/groovy.jar:/usr/share/java/commons-lang-2.6.jar:./tools/codegenerator:xbmc/interfaces/python" \
  	-d tools/codegenerator tools/codegenerator/Helper.groovy  tools/codegenerator/SwigTypeParser.groovy xbmc/interfaces/python/MethodType.groovy xbmc/interfaces/python/PythonTools.groovy
  org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  General error during conversion: 0
  
  java.lang.ArrayIndexOutOfBoundsException: 0
     at org.codehaus.groovy.vmplugin.v5.Java5.makeParameters(Java5.java:446)
     at org.codehaus.groovy.vmplugin.v5.Java5.configureClassNode(Java5.java:366)
     at org.codehaus.groovy.ast.ClassNode.lazyClassInit(ClassNode.java:275)
     at org.codehaus.groovy.ast.ClassNode.getDeclaredMethods(ClassNode.java:872)
     at org.codehaus.groovy.ast.ClassNode.getMethods(ClassNode.java:887)
     at org.codehaus.groovy.ast.ClassNode.getMethod(ClassNode.java:914)
     at org.codehaus.groovy.classgen.EnumVisitor.addMethods(EnumVisitor.java:123)
     at org.codehaus.groovy.classgen.EnumVisitor.completeEnum(EnumVisitor.java:83)
     at org.codehaus.groovy.classgen.EnumVisitor.visitClass(EnumVisitor.java:64)
     at org.codehaus.groovy.control.CompilationUnit$2.call(CompilationUnit.java:176)
     at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
     at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
     at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
     at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
     at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:537)
     at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:61)
     at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:217)
     at org.codehaus.groovy.tools.FileSystemCompiler.commandLineCompile(FileSystemCompiler.java:150)
     at org.codehaus.groovy.tools.FileSystemCompiler.commandLineCompileWithErrorHandling(FileSystemCompiler.java:180)
     at org.codehaus.groovy.tools.FileSystemCompiler.main(FileSystemCompiler.java:164)
     at java.lang.reflect.Method.invoke(libgcj.so.17)
     at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)
     at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131)
  
  1 error

hppa is notable for using GCJ in lieu of OpenJDK, which doesn't
support that architecture.  (hurd-i386, also not a release
architecture, is in the same boat; there, however, kodi is in dep-wait
on fontforge over #877795.)  Could you please take a look?

Thanks!

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu



More information about the pkg-java-maintainers mailing list