Uploaded image for project: 'Policy Framework'
  1. Policy Framework
  2. POLICY-134

PolicyLogger.info(Object arg0) executes recursively causing stack overflow error.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Low Low
    • Amsterdam Release
    • None
    • None
    • None

      The PolicyLogger.info(Object arg0) method takes a generic Java object as a parameter and is supposed to cast the Object to a String and pass it to the PolicyLogger.info(String arg0) method. However, the Object is never cast, therefore the method calls itself recursively until it eventually causes a stack overflow error.

      Fix was to simply call debugLogger.info(MessageCodes, String) directly from within PolicyLogger.info(Object arg0)  and remove the PolicyLogger.info(String arg0) method.

            dm741q dm741q
            dm741q dm741q
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: