[jira] [Updated] (GROOVY-8641) Cannot qualify path expression with soft keyword (exclude "def" for now)

2018-07-04 Thread Paul King (JIRA)


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

Paul King updated GROOVY-8641:
--
Summary: Cannot qualify path expression with soft keyword (exclude "def" 
for now)  (was: Cannot qualify path expression with soft keyword)

> Cannot qualify path expression with soft keyword (exclude "def" for now)
> 
>
> Key: GROOVY-8641
> URL: https://issues.apache.org/jira/browse/GROOVY-8641
> Project: Groovy
>  Issue Type: Bug
>  Components: parser-antlr4
>Affects Versions: 3.0.0-alpha-2
>Reporter: Daniil Ovchinnikov
>Assignee: Daniel Sun
>Priority: Major
> Fix For: 3.0.0-alpha-4, 2.6.0-alpha-5
>
>
> {{in.foo}} (and others) in valid path expression in Groovy < 3.0.
> The following code is parsed and run properly in previous versions, but fails 
> in 3.0:
> {code}
> def delegate = new Object() {
>   def getProperty(String name) {
> println name
> return this
>   }
> }
> delegate.with {
>   in.foo // Unexpected input: 'delegate.with {\n  in.foo\n' @ line 9, column 
> 9.
>   def.foo
>   trait.foo
>   as.foo
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GROOVY-8641) Cannot qualify path expression with soft keyword (exclude "def" for now)

2018-07-04 Thread Paul King (JIRA)


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

Paul King updated GROOVY-8641:
--
Description: 
{{in.foo}} (and others) in valid path expression in Groovy < 3.0.
The following code is parsed and run properly in previous versions, but fails 
in 3.0:
{code}
def delegate = new Object() {
  def getProperty(String name) {
println name
return this
  }
}

delegate.with {
  in.foo // Unexpected input: 'delegate.with {\n  in.foo\n' @ line 9, column 9.
//  def.foo
  trait.foo
  as.foo
}
{code}

  was:
{{in.foo}} (and others) in valid path expression in Groovy < 3.0.
The following code is parsed and run properly in previous versions, but fails 
in 3.0:
{code}
def delegate = new Object() {
  def getProperty(String name) {
println name
return this
  }
}

delegate.with {
  in.foo // Unexpected input: 'delegate.with {\n  in.foo\n' @ line 9, column 9.
  def.foo
  trait.foo
  as.foo
}
{code}


> Cannot qualify path expression with soft keyword (exclude "def" for now)
> 
>
> Key: GROOVY-8641
> URL: https://issues.apache.org/jira/browse/GROOVY-8641
> Project: Groovy
>  Issue Type: Bug
>  Components: parser-antlr4
>Affects Versions: 3.0.0-alpha-2
>Reporter: Daniil Ovchinnikov
>Assignee: Daniel Sun
>Priority: Major
> Fix For: 3.0.0-alpha-4, 2.6.0-alpha-5
>
>
> {{in.foo}} (and others) in valid path expression in Groovy < 3.0.
> The following code is parsed and run properly in previous versions, but fails 
> in 3.0:
> {code}
> def delegate = new Object() {
>   def getProperty(String name) {
> println name
> return this
>   }
> }
> delegate.with {
>   in.foo // Unexpected input: 'delegate.with {\n  in.foo\n' @ line 9, column 
> 9.
> //  def.foo
>   trait.foo
>   as.foo
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (GROOVY-8641) Cannot qualify path expression with soft keyword

2018-06-25 Thread Paul King (JIRA)


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

Paul King updated GROOVY-8641:
--
Component/s: (was: parser)
 parser-antlr4

> Cannot qualify path expression with soft keyword
> 
>
> Key: GROOVY-8641
> URL: https://issues.apache.org/jira/browse/GROOVY-8641
> Project: Groovy
>  Issue Type: Bug
>  Components: parser-antlr4
>Affects Versions: 3.0.0-alpha-2
>Reporter: Daniil Ovchinnikov
>Priority: Major
>
> {{in.foo}} (and others) in valid path expression in Groovy < 3.0.
> The following code is parsed and run properly in previous versions, but fails 
> in 3.0:
> {code}
> def delegate = new Object() {
>   def getProperty(String name) {
> println name
> return this
>   }
> }
> delegate.with {
>   in.foo // Unexpected input: 'delegate.with {\n  in.foo\n' @ line 9, column 
> 9.
>   def.foo
>   trait.foo
>   as.foo
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)