JEP 216: Process Import Statements Correctly

Jan Lahoda jan.lahoda at oracle.com
Wed Oct 22 14:08:38 UTC 2014


Hi Eddie,

Thanks a lot for the report. It is similar to JDK-7101822 but slightly 
different (as "Transaction" gets into the Scope by subclassing rather 
than by import). The internal cause is similar: TranscationImpl is being 
"member resolved" before its enclosing environment is fully finished. 
Reports like this (will) help validate the fix approach, thanks for it! 
If you have other/different cases, I'd be happy to hear them.

Thanks a lot,
     Jan

On 22.10.2014 02:50, Eddie Aftandilian wrote:
> We received another bug report a few days ago.  I've minimized it and
> attached it to this email.  When I try to compile this code, I get a
> "symbol not found" error.  If I comment out the static import in the
> package1/ClientImpl.java file, then it compiles.  I can reproduce with
> javac 1.7.0 and 1.8.0_05.
>
> % javac package1/ClientImpl.java
> package1/ClientImpl.java:10: error: cannot find symbol
>    static class TransactionImpl<T> implements Transaction<T> {
>                                               ^
>    symbol:   class Transaction
>    location: class ClientImpl
> package1/ClientImpl.java:18: error: method does not override or
> implement a method from a supertype
>      @Override
>      ^
> 2 errors
>
> On Fri, Oct 17, 2014 at 11:07 AM, Vicente-Arturo Romero-Zaldivar
> <vicente.romero at oracle.com <mailto:vicente.romero at oracle.com>> wrote:
>
>     Please send us related bug reports :)
>
>     Thanks,
>     Vicente
>
>
>     On 10/16/2014 10:32 AM, Eddie Aftandilian wrote:
>>     FWIW, at Google we get a bug report for this roughly once a
>>     month.  It would be great to have it fixed.
>>
>>     On Thu, Oct 16, 2014 at 10:20 AM, <mark.reinhold at oracle.com
>>     <mailto:mark.reinhold at oracle.com>> wrote:
>>
>>         New JEP Candidate: http://openjdk.java.net/jeps/216
>>
>>         - Mark
>>
>>
>
>


More information about the compiler-dev mailing list