Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4631268

MR155: Incorrect initialization of ObjectName's canonical name when a key is ""

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_8
    • Verification:
      Verified

      Description

      When a new ObjectName is constructed form a string where one key is "", then the value of this key does not appear in the ObjectName's canonical name:

      For example:

      try {
        System.out.println(
          (new javax.management.ObjectName(
            "spacedomain:%$#@!=&^{}[],2=2,\"\"=;,*")).getCanonicalName());
      }
      catch (Exception e) {}

      produces the following output:
      space domain:%$#@!=&^{}[],2=2,=;

        Attachments

          Activity

            People

            • Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: