JDK 9 RFR of JDK-8027063 SecurityManger.getClassContext returns a raw type

Lance Andersen - Oracle Lance.Andersen at oracle.com
Mon Jan 6 20:56:49 UTC 2014


+1
On Jan 6, 2014, at 3:53 PM, Joe Darcy wrote:

> Hello,
> 
> Please review the simple change to fix JDK-8027063 SecurityManger.getClassContext returns a raw type, which changes a signature of a protected method in SecurityManger to remove a use of raw types in the core libraries:
> 
> --- a/src/share/classes/java/lang/SecurityManager.java    Mon Jan 06 11:48:32 2014 -0800
> +++ b/src/share/classes/java/lang/SecurityManager.java    Mon Jan 06 12:51:52 2014 -0800
> @@ -1,5 +1,5 @@
> /*
> - * Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 1995, 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
> @@ -307,7 +307,7 @@
>      *
>      * @return  the execution stack.
>      */
> -    protected native Class[] getClassContext();
> +    protected native Class<?>[] getClassContext();
> 
>     /**
>      * Returns the class loader of the most recently executing method from
> 
> A clean build succeeds and the SecurityManager tests pass after this change.
> 
> Thanks,
> 
> -Joe

-------------- next part --------------

Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com



More information about the core-libs-dev mailing list