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

Joe Darcy joe.darcy at oracle.com
Mon Jan 6 20:53:56 UTC 2014


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



More information about the security-dev mailing list