[jira] [Closed] (GROOVY-8447) It is allowed to define local variable of void type
[ https://issues.apache.org/jira/browse/GROOVY-8447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Sun closed GROOVY-8447. -- Resolution: Fixed Fix Version/s: 3.0.0-alpha-2 2.6.0-alpha-3 The issue has already been fixed in the Parrot parser. > It is allowed to define local variable of void type > --- > > Key: GROOVY-8447 > URL: https://issues.apache.org/jira/browse/GROOVY-8447 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.13 >Reporter: Daniil Ovchinnikov >Assignee: Daniel Sun > Fix For: 2.6.0-alpha-3, 3.0.0-alpha-2 > > > {code:title=bugs.groovy} > void ff = 1 > println ff > {code} > {noformat} > java.lang.ClassFormatError: Field "ff" in class bugs has illegal signature "V" > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Assigned] (GROOVY-8447) It is allowed to define local variable of void type
[ https://issues.apache.org/jira/browse/GROOVY-8447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Sun reassigned GROOVY-8447: -- Assignee: Daniel Sun > It is allowed to define local variable of void type > --- > > Key: GROOVY-8447 > URL: https://issues.apache.org/jira/browse/GROOVY-8447 > Project: Groovy > Issue Type: Bug >Affects Versions: 2.4.13 >Reporter: Daniil Ovchinnikov >Assignee: Daniel Sun > > {code:title=bugs.groovy} > void ff = 1 > println ff > {code} > {noformat} > java.lang.ClassFormatError: Field "ff" in class bugs has illegal signature "V" > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Assigned] (GROOVY-7923) I want to report that your latest distibution contains a Trojan
[ https://issues.apache.org/jira/browse/GROOVY-7923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Keegan Witt reassigned GROOVY-7923: --- Assignee: Keegan Witt > I want to report that your latest distibution contains a Trojan > --- > > Key: GROOVY-7923 > URL: https://issues.apache.org/jira/browse/GROOVY-7923 > Project: Groovy > Issue Type: Bug >Reporter: Robert Murphy >Assignee: Keegan Witt > Attachments: MSE_Groovy2_4_7.PNG > > > Your latest distribution, 2.4.7 contains the Trojan Rundas!plock in its > uninstall.exe. If you wish to contact me for further information, use > robert.mur...@harman.com > (I have no idea what to fill out for the Component field, and I can't spare > the time today to figure it out.) > Thank you -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Assigned] (GROOVY-8224) Stubs for classes implementing traits with fields don't include getters/setters
[ https://issues.apache.org/jira/browse/GROOVY-8224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Keegan Witt reassigned GROOVY-8224: --- Assignee: (was: Keegan Witt) > Stubs for classes implementing traits with fields don't include > getters/setters > --- > > Key: GROOVY-8224 > URL: https://issues.apache.org/jira/browse/GROOVY-8224 > Project: Groovy > Issue Type: Bug > Components: Stub generator / Joint compiler >Reporter: Keegan Witt > > As an example, the stubs generated for _GroovyXImpl_ for the Groovy below > doesn't include {{int getFoo()}} or {{void setFoo(int value)}}. > {code:java} > trait GroovyXTrait { > int foo > } > class GroovyXImpl implements GroovyXTrait { } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (GROOVY-8338) Calling Stream.of from groovy class in JDK 9 fails
[ https://issues.apache.org/jira/browse/GROOVY-8338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16325122#comment-16325122 ] Jochen Theodorou commented on GROOVY-8338: -- What I fixed is the proxy generator callsite caching is using to make the call. So as long as the call is done through the proxy it should work. Or so I thought. the message tells me that the proxy class is loaded but incorrect. It tells me that me fix is not applied for it actually and that this still generates the old proxy version we still require because those people cannot keep java9 and java8 working properly together at times. I think it depends on the VM if it works or not. > Calling Stream.of from groovy class in JDK 9 fails > -- > > Key: GROOVY-8338 > URL: https://issues.apache.org/jira/browse/GROOVY-8338 > Project: Groovy > Issue Type: Bug > Components: groovy-runtime >Affects Versions: 2.4.12 >Reporter: Marcus Nylander > > Trying to call Stream.of from groovy class (groovy version 2.4.12) using JDK > 9 (jdk 9 181) fails. > Example: > {code} > package test > import java.util.stream.Stream > class B { > static void main(String[] args) { > Stream.of("1").forEach({ println(it) }) > } > } > {code} > The code above fails with: > Exception in thread "main" java.lang.IncompatibleClassChangeError: Method > java.util.stream.Stream.of(Ljava/lang/Object;)Ljava/util/stream/Stream; must > be InterfaceMethodref constant > at java_util_stream_Stream$of.call(Unknown Source) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at test.B.main(B.groovy:7) > The same occurs for other interface static methods also: > {code} > public interface D { > static D of(String s) { > return new D() { > }; > } > } > class C { > static void main(String[] args) { > D.of("1") > } > } > {code} > Also fails with: > Exception in thread "main" java.lang.IncompatibleClassChangeError: Method > test.D.of(Ljava/lang/String;)Ltest/D; must be InterfaceMethodref constant > at test.D$of.call(Unknown Source) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) > at test.C.main(C.groovy:7) > Running with JDK 8 works fine. -- This message was sent by Atlassian JIRA (v6.4.14#64029)