com.sun.management.VMOption.toString()

Dmitry Samersoff Dmitry.Samersoff at oracle.com
Mon Aug 27 09:11:12 PDT 2012


Dmytro,

Thank you fro catching it.
Yes, we need a CR.
I'll file it tomorrow and sponsor the commit.

-Dmitry

On 2012-08-27 19:59, Dmytro Sheyko wrote:
> 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)");
>      }
>  
>      /**
> 
> Do we need formal bug report to fix this?
> 
> Regards,
> Dmytro


-- 
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...




More information about the serviceability-dev mailing list