groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Sun (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-8216) invalid octal split into two arguments
Date Fri, 02 Jun 2017 16:01:04 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Sun resolved GROOVY-8216.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0-alpha-1

Fixed by https://github.com/apache/groovy/commit/90be9e50df449bc20d827ec7758bcd444713d40c

> invalid octal split into two arguments
> --------------------------------------
>
>                 Key: GROOVY-8216
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8216
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser-antlr
>            Reporter: Jochen Theodorou
>            Assignee: Daniel Sun
>             Fix For: 3.0.0-alpha-1
>
>
> {code}​println 09​{code}
> This code will cause a NPE, because it will be evaluated as println 0 9, which is evaluated
as println(0).9. This happens because the leading zero introduces an octal, but 09 is no octal.
The parser no falsely accepts 0 as valid number and does not recognize that 09 is supposed
to be a single number anymore.
> The expected behaviour is a compile time failure.
> Daniel, can we fix that in parrot?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message