You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2018/12/18 10:25:26 UTC

[groovy] branch GROOVY_2_5_X updated: GROOVY-8931: AstNodeToScriptVisitor - wrong "extends/implements" order

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_2_5_X by this push:
     new 08ba919  GROOVY-8931: AstNodeToScriptVisitor - wrong "extends/implements" order
08ba919 is described below

commit 08ba9197c1fc156311eec93bffe3247e4292bc6b
Author: Paul King <pa...@asert.com.au>
AuthorDate: Tue Dec 18 20:24:13 2018 +1000

    GROOVY-8931: AstNodeToScriptVisitor - wrong "extends/implements" order
---
 .../main/groovy/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy b/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy
index 849bfb2..2f3a2f8 100644
--- a/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy
+++ b/subprojects/groovy-console/src/main/groovy/groovy/inspect/swingui/AstNodeToScriptAdapter.groovy
@@ -341,6 +341,8 @@ class AstNodeToScriptVisitor extends PrimaryClassNodeOperation implements Groovy
         if (node.isInterface()) print node.name
         else print "class $node.name"
         visitGenerics node?.genericsTypes
+        print ' extends '
+        visitType node.unresolvedSuperClass
         boolean first = true
         node.unresolvedInterfaces?.each {
             if (!first) {
@@ -351,8 +353,6 @@ class AstNodeToScriptVisitor extends PrimaryClassNodeOperation implements Groovy
             first = false
             visitType it
         }
-        print ' extends '
-        visitType node.unresolvedSuperClass
         print ' { '
         printDoubleBreak()