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

2014-01-06 Thread Joe Darcy

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.javaMon Jan 06 
11:48:32 2014 -0800
+++ b/src/share/classes/java/lang/SecurityManager.javaMon 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


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

2014-01-06 Thread Lance Andersen - Oracle
+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.javaMon Jan 06 11:48:32 
 2014 -0800
 +++ b/src/share/classes/java/lang/SecurityManager.javaMon 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


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



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

2014-01-06 Thread Xuelei Fan

Looks fine to me.

Thanks,
Xuelei

On 1/7/2014 4:53 AM, 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.javaMon Jan 06
11:48:32 2014 -0800
+++ b/src/share/classes/java/lang/SecurityManager.javaMon 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