Can't resolve symbol

When I invoke field (with packet default scope in another packet) all fine, and field resolved.
But when I try invoke some another method or field from current field, he lost ("Can't resolve symbol").
In previouse IDEA versions it works.

Example:


package one;
public class SomeHuEnum {
   static POJO FIE2 = new POJO();
}


package one;
final public class POJO {
   public String hu;

   public String getHu() {
      return hu;
   }
}


package another;

import one.POJO;
import one.SomeHuEnum;

public class UseSomeHuEnum {
   public static void main(String[] args) {
      POJO fie2 = SomeHuEnum.FIE2;               // can resolve FIE2 (message about wrong scope, but can resolve)
      String hu = SomeHuEnum.FIE2.getHu();         // can't resolve FIE2
   }
}

UPD
It becomes unresolve when I type even dot. So It's bug or no?

4 comments
Comment actions Permalink

In which versions this will be fixed? (In 140.2493.5 it still doesn't worked)

0

Please sign in to leave a comment.