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

Wrong cast in stubs generated

    XMLWordPrintableJSON

Details

    Description

      $ #unzip
      $ cd mre/src
      $ groovy -version
      Groovy Version: 3.0.8 JVM: 15.0.1 Vendor: Oracle Corporation OS: Mac OS X
      $ groovyc -j JavaBase.java GroovyInheritor.groovy JavaUsage.java
      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      Compile error during compilation with javac.
      /var/folders/t7/26sb5vb111n3ljbmwv4s340m0000gn/T/groovy-generated--java-source12536140884342736527/GroovyInheritor.java:14: error: incompatible types: Object cannot be converted to Integer
      super((java.lang.Object)null);
            ^
      Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
      1 error
      
      
      1 error
      

      The issue is not reproducible in 3.0.7.
      Same issue can be reproduced opening the directory in IntelliJ and invoking Rebuild Project.
      Related https://youtrack.jetbrains.com/issue/IDEA-270650

      Attachments

        1. mre.zip
          6 kB
          Daniil Ovchinnikov

        Issue Links

          Activity

            People

              emilles Eric Milles
              daniilo Daniil Ovchinnikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: