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

Eric Milles updated GROOVY-11299:
---------------------------------
    Description: 
Consider the following:
{code:groovy}
trait A {
  def m() {}
}
trait B extends A {
}
{code}

Calling {{ClassNode#getMehtod(String)}} before the canonicalization compile 
phase returns "m()".  Normally a super-trait or super-interface method would 
not be returned -- when appearing in the {{implements}} clause for example.

  was:
Consider the following:
{code:groovy}
trait A {
  def m() {}
}
trait B extends A {
}
interface I {
  def m()
}
interface J extends I {
}
{code}

Calling {{ClassNode#getMehtod(String)}} before the canonicalization compile 
phase returns "m()".  Normally a super-trait or super-interface method would 
not be returned -- when appearing in the {{implements}} clause for example.


> ClassNode getField(String), getMethods(String) and others return from super 
> interface when class uses extends
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-11299
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11299
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Major
>
> Consider the following:
> {code:groovy}
> trait A {
>   def m() {}
> }
> trait B extends A {
> }
> {code}
> Calling {{ClassNode#getMehtod(String)}} before the canonicalization compile 
> phase returns "m()".  Normally a super-trait or super-interface method would 
> not be returned -- when appearing in the {{implements}} clause for example.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to