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

2018-07-04 Thread Daniel Sun (JIRA)


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

Daniel Sun commented on GROOVY-8641:


Thank you, Paul :)

> 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:
--
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] [Commented] (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:comment-tabpanel=16533151#comment-16533151
 ] 

Paul King commented on GROOVY-8641:
---

I cloned the issue to track the "def" case.

> 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-8683) CLONE - Cannot qualify path expression with soft keyword ("def" case)

2018-07-04 Thread Paul King (JIRA)


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

Paul King updated GROOVY-8683:
--
Fix Version/s: (was: 2.6.0-alpha-5)
   (was: 3.0.0-alpha-4)

> CLONE - Cannot qualify path expression with soft keyword ("def" case)
> -
>
> Key: GROOVY-8683
> URL: https://issues.apache.org/jira/browse/GROOVY-8683
> Project: Groovy
>  Issue Type: Bug
>  Components: parser-antlr4
>Affects Versions: 3.0.0-alpha-2
>Reporter: Daniil Ovchinnikov
>Assignee: Daniel Sun
>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)


[jira] [Created] (GROOVY-8683) CLONE - Cannot qualify path expression with soft keyword ("def" case)

2018-07-04 Thread Paul King (JIRA)
Paul King created GROOVY-8683:
-

 Summary: CLONE - Cannot qualify path expression with soft keyword 
("def" case)
 Key: GROOVY-8683
 URL: https://issues.apache.org/jira/browse/GROOVY-8683
 Project: Groovy
  Issue Type: Bug
  Components: parser-antlr4
Affects Versions: 3.0.0-alpha-2
Reporter: Daniil Ovchinnikov
Assignee: Daniel Sun
 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] [Comment Edited] (GROOVY-8650) New line between prefix operator and operand

2018-07-04 Thread Paul King (JIRA)


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

Paul King edited comment on GROOVY-8650 at 7/5/18 12:41 AM:


Parrot is inconsistent though since it allows this (as does 2.5.0 - but 
consistently):
{code}
def (x, y, z) = [+
  4, -
  3, !
  (2 == 3)
  ]

assert [x, y, z] == [4, -3, true]
{code}


was (Author: paulk):
Parrot is inconsistent though since it allows this (as does 2.5.0 consistently):
{code}
def (x, y, z) = [+
  4, -
  3, !
  (2 == 3)
  ]

assert [x, y, z] == [4, -3, true]
{code}

> New line between prefix operator and operand
> 
>
> Key: GROOVY-8650
> URL: https://issues.apache.org/jira/browse/GROOVY-8650
> Project: Groovy
>  Issue Type: Bug
>  Components: parser-antlr4
>Affects Versions: 3.0.0-alpha-2
>Reporter: Daniil Ovchinnikov
>Assignee: Daniel Sun
>Priority: Major
>
> The following code is parsed properly in previous versions, but fails in 3.0:
> {code:java}
> def c = --
> 1
> println c // 0{code}
>  



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


[jira] [Commented] (GROOVY-8650) New line between prefix operator and operand

2018-07-04 Thread Paul King (JIRA)


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

Paul King commented on GROOVY-8650:
---

Parrot is inconsistent though since it allows this (as does 2.5.0 consistently):
{code}
def (x, y, z) = [+
  4, -
  3, !
  (2 == 3)
  ]

assert [x, y, z] == [4, -3, true]
{code}

> New line between prefix operator and operand
> 
>
> Key: GROOVY-8650
> URL: https://issues.apache.org/jira/browse/GROOVY-8650
> Project: Groovy
>  Issue Type: Bug
>  Components: parser-antlr4
>Affects Versions: 3.0.0-alpha-2
>Reporter: Daniil Ovchinnikov
>Assignee: Daniel Sun
>Priority: Major
>
> The following code is parsed properly in previous versions, but fails in 3.0:
> {code:java}
> def c = --
> 1
> println c // 0{code}
>  



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


[jira] [Commented] (GROOVY-8650) New line between prefix operator and operand

2018-07-04 Thread Paul King (JIRA)


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

Paul King commented on GROOVY-8650:
---

This applies to numerous of the unary operators, for example the following 
currently runs fine in Groovy 2.5.0:
{code}
def x = +
  4
def y = -
  3
def z = !
  (x == y)

assert [x, y, z] == [4, -3, true]
{code}
Parrot rejects x and y but accepts z.


> New line between prefix operator and operand
> 
>
> Key: GROOVY-8650
> URL: https://issues.apache.org/jira/browse/GROOVY-8650
> Project: Groovy
>  Issue Type: Bug
>  Components: parser-antlr4
>Affects Versions: 3.0.0-alpha-2
>Reporter: Daniil Ovchinnikov
>Assignee: Daniel Sun
>Priority: Major
>
> The following code is parsed properly in previous versions, but fails in 3.0:
> {code:java}
> def c = --
> 1
> println c // 0{code}
>  



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


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

2018-07-04 Thread Daniel Sun (JIRA)


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

Daniel Sun resolved GROOVY-8641.

   Resolution: Fixed
Fix Version/s: 2.6.0-alpha-5
   3.0.0-alpha-4

Fixed by 
https://github.com/apache/groovy/commit/9677e936fdde5ec0d5c42663e65035f34a0213e2

> 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
>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] [Assigned] (GROOVY-8641) Cannot qualify path expression with soft keyword

2018-07-04 Thread Daniel Sun (JIRA)


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

Daniel Sun reassigned GROOVY-8641:
--

Assignee: Daniel Sun

> 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
>Assignee: Daniel Sun
>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)


[jira] [Resolved] (GROOVY-8682) bump asciidoctor to 1.5.8

2018-07-04 Thread Paul King (JIRA)


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

Paul King resolved GROOVY-8682.
---
   Resolution: Fixed
Fix Version/s: 3.0.0-alpha-4
   2.5.1

> bump asciidoctor to 1.5.8
> -
>
> Key: GROOVY-8682
> URL: https://issues.apache.org/jira/browse/GROOVY-8682
> Project: Groovy
>  Issue Type: Dependency upgrade
>Reporter: Paul King
>Assignee: Paul King
>Priority: Minor
> Fix For: 2.5.1, 3.0.0-alpha-4
>
>




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


[jira] [Created] (GROOVY-8682) bump asciidoctor to 1.5.8

2018-07-04 Thread Paul King (JIRA)
Paul King created GROOVY-8682:
-

 Summary: bump asciidoctor to 1.5.8
 Key: GROOVY-8682
 URL: https://issues.apache.org/jira/browse/GROOVY-8682
 Project: Groovy
  Issue Type: Dependency upgrade
Reporter: Paul King
Assignee: Paul King






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