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

Eric Milles reassigned GROOVY-9642:
-----------------------------------

    Assignee: Eric Milles

> Inner interface of parent class unresolved in anon. inner class expression
> --------------------------------------------------------------------------
>
>                 Key: GROOVY-9642
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9642
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 3.0.4
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>
> Consider the following:
> A.java
> {code:java}
> package p;
> public class A {
>   public interface I {
>   }
> }
> {code}
> B.groovy
> {code:groovy}
> package q
> import p.A
> class B extends A {
>   static I maker() {
>     return new I() {} // error: unable to resolve class I
>   }
> }
> {code}
> The inner class "I" can be resolved for return type and class/variable 
> expression (see GROOVY-8364).  However the anonymous inner class usage is 
> reporting an error.  If "I" were a static inner class, it could be used in 
> constructor call expression "new T()" but fails for "new T() {}".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to