3 Replies Latest reply on Mar 20, 2017 4:42 AM by mkouba

    Calling the private method of outer class from the inner static class, the injecting is not working.

    seto
      public class Outer{
           @Inject
           SomeClass instance;
           private void someMethod(){
                instance.xxx();
           }
           private static class Inner{
                @Inject
                Outer outer;
                public void someMethod(){
                     outer.someMethod();
                }
           }
      }
      

      The instance will be null in this case. When calling the inner class someMethod.