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

Daniel Sun resolved GROOVY-8531.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.5.0-rc-2
                   2.4.16
                   2.6.0-alpha-4
                   3.0.0-alpha-2

> Fail to resolve type defined in super class written in Java
> -----------------------------------------------------------
>
>                 Key: GROOVY-8531
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8531
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha-1, 2.5.0-beta-3, 2.6.0-alpha-3, 2.5.0-rc-1, 
> 2.4.15
>            Reporter: Daniel Sun
>            Assignee: Daniel Sun
>            Priority: Major
>             Fix For: 3.0.0-alpha-2, 2.6.0-alpha-4, 2.4.16, 2.5.0-rc-2
>
>
> I am trying to write a hadoop example in Groovy and find groovy can not 
> resolve type defined in super class written in Java:
> *Groovy version(qualified class name is required. Note: Reducer is written in 
> Java)*
>  
> [https://github.com/danielsun1106/hadoop-wordcount/blob/master/src/main/groovy/me/sunlan/hadooplabs/wordcount/GroovyWordCount.groovy#L36]
> *Java version(Only class name is enough)*
>  
> [https://github.com/danielsun1106/hadoop-wordcount/blob/master/src/main/java/me/sunlan/hadooplabs/wordcount/WordCount.java#L39]
> In the meanwhile, I find the issue does *not* exist if super class is written 
> in Groovy too:
> {code:java}
> class Reducer {
>     public abstract class Context {}
> }
> class Example extends Reducer {
>     public void reduce(Context context) {}
> }
> new Example().reduce(null)
> {code}



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

Reply via email to