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

Typeo in com.sun.management.VMOption.toString()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7
    • core-svc
    • b58
    • generic
    • generic
    • Not verified

      From: Dmytro Sheyko <###@###.###>

      Hi,

      Just found little misprint in com.sun.management.VMOption.toString()
      It returns "...(read-only)" if writable is true and "...(read-write)"
      otherwise.
      Here is a patch:

      diff -r 156ab3c38556 src/share/classes/com/sun/management/VMOption.java
      --- a/src/share/classes/com/sun/management/VMOption.java Thu Aug 23
      12:27:49 2012 -0700
      +++ b/src/share/classes/com/sun/management/VMOption.java Mon Aug 27
      18:52:10 2012 +0300
      @@ -178,7 +178,7 @@
               return "VM option: " + getName() +
                      " value: " + value + " " +
                      " origin: " + origin + " " +
      - (writeable ? "(read-only)" : "(read-write)");
      + (writeable ? "(read-write)" : "(read-only)");
           }
       
           /**

            dsamersoff Dmitriy Samersoff
            dsamersoff Dmitriy Samersoff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: