groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-7953) Property expressions for extension methods on primitives fail STC
Date Sat, 08 Oct 2016 20:45:20 GMT

    [ https://issues.apache.org/jira/browse/GROOVY-7953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15558686#comment-15558686
] 

ASF GitHub Bot commented on GROOVY-7953:
----------------------------------------

Github user PascalSchumacher commented on a diff in the pull request:

    https://github.com/apache/groovy/pull/442#discussion_r82509499
  
    --- Diff: src/spec/test-resources/META-INF/services/org.codehaus.groovy.runtime.ExtensionModule
---
    @@ -17,5 +17,5 @@
     # IT IS A WORKAROUND FOR 2 DESCRIPTORS ON CLASSPATH!
     moduleName=Test module
     moduleVersion=1.0-test
    -extensionClasses=support.MaxRetriesExtension,org.codehaus.groovy.runtime.m12n.TestStringExtension,org.codehaus.groovy.runtime.m12n.Groovy6496Extension
    +extensionClasses=support.MaxRetriesExtension,org.codehaus.groovy.runtime.m12n.TestStringExtension,org.codehaus.groovy.runtime.m12n.Groovy6496Extension,,org.codehaus.groovy.runtime.m12n.TestPrimitiveWrapperExtension
    --- End diff --
    
    superfluous comma


> Property expressions for extension methods on primitives fail STC
> -----------------------------------------------------------------
>
>                 Key: GROOVY-7953
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7953
>             Project: Groovy
>          Issue Type: Bug
>          Components: Static compilation, Static Type Checker
>    Affects Versions: 2.4.7
>            Reporter: Shil Sinha
>            Assignee: Shil Sinha
>
> If we include groovy's TimeCategory as an extension class in an extension module, we
can make method calls like {{3.getDays()}} in type checked code, but we cannot call that same
method as a property i.e. {{3.days}} fails static type checking.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message