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

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

    Seto Kaiba Expert
      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.