JDK 9 RFR of JDK-8066634: Suppress deprecation warnings in java.management module

Staffan Larsen staffan.larsen at oracle.com
Mon Dec 8 07:24:10 UTC 2014


Looks good!

Thanks,
/Staffan

> On 8 dec 2014, at 08:04, joe darcy <joe.darcy at oracle.com> wrote:
> 
> Hello,
> 
> Please review the patch below which addresses
> 
>    JDK-8066634: Suppress deprecation warnings in java.management module
> 
> Thanks,
> 
> -Joe
> 
> diff -r 913808eaf19a src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java
> --- a/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java Mon Nov 10 08:43:27 2014 -0800
> +++ b/src/java.management/share/classes/com/sun/jmx/interceptor/DefaultMBeanServerInterceptor.java Sun Dec 07 23:02:51 2014 -0800
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
>  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
>  *
>  * This code is free software; you can redistribute it and/or modify it
> @@ -1707,16 +1707,19 @@
>         throw new UnsupportedOperationException("Not supported yet.");
>     }
> 
> +    @SuppressWarnings("deprecation")
>     public ObjectInputStream deserialize(ObjectName name, byte[] data) throws InstanceNotFoundException,
> OperationsException {
>         throw new UnsupportedOperationException("Not supported yet.");
>     }
> 
> +    @SuppressWarnings("deprecation")
>     public ObjectInputStream deserialize(String className, byte[] data) throws OperationsException,
> ReflectionException {
>         throw new UnsupportedOperationException("Not supported yet.");
>     }
> 
> +    @SuppressWarnings("deprecation")
>     public ObjectInputStream deserialize(String className, ObjectName loaderName,
>             byte[] data) throws InstanceNotFoundException, OperationsException,
>                                 ReflectionException {
> 



More information about the serviceability-dev mailing list