[JIRA] (JENKINS-44616) groovy increment does not work

1 view
Skip to first unread message

burtsevyg@mail.ru (JIRA)

unread,
Nov 22, 2018, 3:49:05 AM11/22/18
to jenkinsc...@googlegroups.com
Yuriy Burtsev closed an issue as Fixed
 
Jenkins / Bug JENKINS-44616
groovy increment does not work
Change By: Yuriy Burtsev
Status: Resolved Closed
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

fschrei@gmx.de (JIRA)

unread,
Oct 9, 2019, 4:49:03 AM10/9/19
to jenkinsc...@googlegroups.com
Frederik Schreiber commented on Bug JENKINS-44616
 
Re: groovy increment does not work

If using example in description it works, but if using Integer Object Wrapper the error still occure.

 

example

def testIncrement() {
    def i = ++Integer.parseInt("1")
} 

 

error:

groovy.lang.MissingMethodException: No signature of method: com.cloudbees.groovy.cps.Builder.prefixInc() is applicable for argument types: (java.lang.Integer, com.cloudbees.groovy.cps.impl.FunctionCallBlock) values: [2, com.cloudbees.groovy.cps.impl.FunctionCallBlock@2e98ac68]
Possible solutions: prefixInc(int, com.cloudbees.groovy.cps.LValueBlock), prefixDec(int, com.cloudbees.groovy.cps.LValueBlock), postfixInc(int, com.cloudbees.groovy.cps.LValueBlock)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
	at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
	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:133)

 

should i re-open ticket or should i create a new one Andrew Bayer?

 

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

fschrei@gmx.de (JIRA)

unread,
Oct 9, 2019, 4:51:03 AM10/9/19
to jenkinsc...@googlegroups.com
Frederik Schreiber edited a comment on Bug JENKINS-44616
If using example in description it works, but if using Integer Object Wrapper the error still occure.

 

example
{code:java}

def testIncrement() {
    def i = ++Integer.parseInt("1")
} {code}
 

error:
{code:java}

groovy.lang.MissingMethodException: No signature of method: com.cloudbees.groovy.cps.Builder.prefixInc() is applicable for argument types: (java.lang.Integer, com.cloudbees.groovy.cps.impl.FunctionCallBlock) values: [2, com.cloudbees.groovy.cps.impl.FunctionCallBlock@2e98ac68]
Possible solutions: prefixInc(int, com.cloudbees.groovy.cps.LValueBlock), prefixDec(int, com.cloudbees.groovy.cps.LValueBlock), postfixInc(int, com.cloudbees.groovy.cps.LValueBlock)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
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:133){code}
 

should i re-open ticket or should i create a new one [~abayer]?

 


my Pipeline Groovy Version: 2.74

burtsevyg@mail.ru (JIRA)

unread,
Oct 11, 2019, 4:59:04 AM10/11/19
to jenkinsc...@googlegroups.com
Yuriy Burtsev reopened an issue
 
Change By: Yuriy Burtsev
Resolution: Fixed
Status: Closed Reopened
Assignee: Oleg Nenashev

burtsevyg@mail.ru (JIRA)

unread,
Oct 11, 2019, 5:08:04 AM10/11/19
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Oct 11, 2019, 4:25:02 PM10/11/19
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
 
Change By: Jesse Glick
Assignee: Oleg Nenashev
Reply all
Reply to author
Forward
0 new messages