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

NoClassDefFoundError: [Lint;

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.7, 2.4.0-beta-3
    • 2.3.8, 2.4.0-beta-4
    • Static compilation
    • None

    Description

      Groovy code.

      @groovy.transform.CompileStatic
      void test() { 
          def list = Test2.test2()
          for (def ary : list) {}
      }
      
      test()
      

      Java code.

      import java.util.*;
      
      public class Test2 {
          public static List<int[]> test2() {
              return Arrays.asList(new int[1][1]);
          }
      }
      

      Error message.

      Caught: java.lang.NoClassDefFoundError: [Lint;
      java.lang.NoClassDefFoundError: [Lint;
              at test.test(test.groovy:4)
              at test.run(test.groovy:7)
      Caused by: java.lang.ClassNotFoundException: int
              ... 2 more
      

      Attachments

        Activity

          People

            melix C├ędric Champeau
            yukoba Yu Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: