You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Daniil Ovchinnikov (Jira)" <ji...@apache.org> on 2021/06/02 17:37:00 UTC
[jira] [Created] (GROOVY-10122) Wrong cast in stubs generated
Daniil Ovchinnikov created GROOVY-10122:
-------------------------------------------
Summary: Wrong cast in stubs generated
Key: GROOVY-10122
URL: https://issues.apache.org/jira/browse/GROOVY-10122
Project: Groovy
Issue Type: Bug
Components: Stub generator / Joint compiler
Affects Versions: 3.0.8
Reporter: Daniil Ovchinnikov
Attachments: mre.zip
{noformat}
$ #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
{noformat}
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)