Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17580

[GSS](7.2.z) RESTEASY-2249 @PostConstruct on @ApplicationScoped bean called too late in case a non public @PostConstruct method is present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.5.CR1, 7.2.5.GA
    • 7.2.0.GA
    • REST
    • This issue is about Bean Validation...

      Having a bean class with @ApplicationScoped, which has a none public @PostConstruct and is implementing the following Interface:

      @Path("/validated")
      public interface ValidatedJaxRsInterface {
          
          @GET
          @Valid
          @Produces(MediaType.APPLICATION_JSON)
          GreetingModel getHelloGreeting();
      }
      

      will result in calling the getHelloGreeting method of the implementation class twice before the @PostConstruct is getting executed.

      This issue was present for public @PostConstruct as well and was fixed for those with JBEAP-16688.

              spyrkob Bartosz Spyrko-Smietanko
              rhn-support-jbaesner Joerg Baesner
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: