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

resteasy-guice's RequestScopeModule has a recursive toString implementation

    XMLWordPrintable

Details

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

    Description

      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);
      }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: