Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3149

Fix inject method in InjectorFactoryImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 6.1.0.Beta3, 6.1.0.Final
    • None
    • None
    • None

      In the method inject(request, response, unwrapAsync) in resteasy-core/src/main/java/org/jboss/resteasy/core/InjectorFactoryImpl.java, the Object injectedValue is assigned to itself.

      public Object inject(HttpRequest request, HttpResponse response, boolean unwrapAsync) {
          Object injectedValue = delegate.inject(request, response, unwrapAsync);
          injectedValue = injectedValue;
          if (injectedValue != null && injectedValue instanceof CompletionStage) {
              return ((CompletionStage<Object>)injectedValue).thenApply(this::wrap);
          }
          return wrap(CompletionStageHolder.resolve(injectedValue));
      } 

              Unassigned Unassigned
              clara0 Clara Fang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: