[JIRA] (JENKINS-58414) Property of object, which extends Map, couldn't be accessed
Title: Message Title Dicom J edited a comment on JENKINS-58414 Re: Property of object, which extends Map, couldn't be accessed [~jglick], @ notation works, both internally as `def myFooBar() \{ this.@foobar }` and externally as `m.@foobar`.Again, thanks a lot!!! Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200541.1562704486000.7637.1562785740131%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58414) Property of object, which extends Map, couldn't be accessed
Title: Message Title Dicom J commented on JENKINS-58414 Re: Property of object, which extends Map, couldn't be accessed Jesse Glick, @ notation works, both internally `def myFooBar() { this.@foobar }` and externally as `m.@foobar`. Again, thanks a lot!!! Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200541.1562704486000.7635.1562785680175%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58414) Property of object, which extends Map, couldn't be accessed
Title: Message Title Dicom J edited a comment on JENKINS-58414 Re: Property of object, which extends Map, couldn't be accessed [~jglick], thanks , will try Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200541.1562704486000.7626.1562784900310%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58414) Property of object, which extends Map, couldn't be accessed
Title: Message Title Dicom J commented on JENKINS-58414 Re: Property of object, which extends Map, couldn't be accessed Jesse Glick, thanks Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200541.1562704486000.7611.1562784420172%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58414) Property of object, which extends Map, couldn't be accessed
Title: Message Title Jesse Glick commented on JENKINS-58414 Re: Property of object, which extends Map, couldn't be accessed As a workaround, check if @ notation (explicit field access) helps. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.200541.1562704486000.7476.1562779080257%40Atlassian.JIRA. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-58414) Property of object, which extends Map, couldn't be accessed
Title: Message Title Dicom J created an issue Jenkins / JENKINS-58414 Property of object, which extends Map, couldn't be accessed Issue Type: Bug Assignee: Unassigned Components: workflow-cps-plugin Created: 2019-07-09 20:34 Priority: Blocker Reporter: Dicom J Code (also used within library): class MyMap extends java.util.LinkedHashMap { public final String foobar MyMap(Map map) { super(map) this.foobar = 'foobar' } def myFooBar() { return this.foobar } } node { def m = new MyMap([foo: 'bar', bar: 'foo']) print "bar=${m.bar}" print "foo=${m.foo}" print "foobar=${m.foobar}" print "foobar=${m.myFooBar()}" } Result: [Pipeline] node Running on Jenkins in /build/workspace [Pipeline] { [Pipeline] echo bar=foo [Pipeline] echo foo=bar [Pipeline] echo foobar=null [Pipeline] echo foobar=null [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS Expected: 'foobar' value printed Conceptually and most likely overloaded getProperty(name) method has a bug...