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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.1
    • 1.1
    • core-svc
    • None
    • 1.1
    • sparc
    • solaris_8
    • Verified

      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,=;

            dfuchs Daniel Fuchs
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: