Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-alpha-1, 2.5.0-beta-3, 2.6.0-alpha-3, 2.5.0-rc-1, 2.4.15
-
None
-
None
Description
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:
class Reducer { public abstract class Context {} } class Example extends Reducer { public void reduce(Context context) {} } new Example().reduce(null)