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

resteasy-guice's RequestScopeModule has a recursive toString implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.Final, 3.0.20.Final
    • 3.0.19.Final
    • None
    • None

      resteasy-guice's RequestScopeModule has RequestScoped scope binding, which has a toString implementation which implicitly calls itself through String.format. This will result in java.lang.StackOverflowError.

      The offending line is at RequestScopeModule.java line 52:

      @Override
      public String toString() {
          return String.format("%s[%s]", creator, this);
      }
      

              rsigal@redhat.com Ronald Sigal
              arlampin Antti Lampinen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: