Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-6712

JsonValue Class initialisation might create a deadlock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: specs
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      Our JsonValue class contains the following two static fields:

      {souce}
      JsonObject EMPTY_JSON_OBJECT = Json.createObjectBuilder().build();
      JsonArray EMPTY_JSON_ARRAY = Json.createArrayBuilder().build();{souce}

      It basically starts up a whole Json Provider just for initialising the JsonValue class.
      This might lead to a deadlock in the JVM during the classloading if it gets triggered in highly concurrent situtations.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                struberg Mark Struberg
                Reporter:
                struberg Mark Struberg
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: