changeset 57423:63e17cf29bed jdk-15+1

8235514: Update record serialization tests to not use hard coded source versions Reviewed-by: lancea
author darcy
date Thu, 12 Dec 2019 11:31:05 -0800
parents 27d52615ba1b
children 642b562ed16e
files src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java src/java.base/share/classes/java/lang/reflect/Modifier.java src/jdk.rmic/share/classes/sun/tools/util/ModifierFilter.java
diffstat 3 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java	Tue Dec 10 16:38:53 2019 -0800
+++ b/src/java.base/share/classes/java/lang/invoke/ConstantBootstraps.java	Thu Dec 12 11:31:05 2019 -0800
@@ -43,8 +43,7 @@
     /**
      * Do not call.
      */
-    @Deprecated(forRemoval=true, since="14")
-    public ConstantBootstraps() {}
+    private ConstantBootstraps() {throw new AssertionError();}
 
     // implements the upcall from the JVM, MethodHandleNatives.linkDynamicConstant:
     /*non-public*/
--- a/src/java.base/share/classes/java/lang/reflect/Modifier.java	Tue Dec 10 16:38:53 2019 -0800
+++ b/src/java.base/share/classes/java/lang/reflect/Modifier.java	Thu Dec 12 11:31:05 2019 -0800
@@ -46,8 +46,7 @@
     /**
      * Do not call.
      */
-    @Deprecated(forRemoval=true, since="14")
-    public Modifier() {}
+    private Modifier() {throw new AssertionError();}
 
 
     /**
--- a/src/jdk.rmic/share/classes/sun/tools/util/ModifierFilter.java	Tue Dec 10 16:38:53 2019 -0800
+++ b/src/jdk.rmic/share/classes/sun/tools/util/ModifierFilter.java	Thu Dec 12 11:31:05 2019 -0800
@@ -26,7 +26,7 @@
 package sun.tools.util;
 
 import sun.tools.java.*;
-
+import static java.lang.reflect.Modifier.*;
 
 /**
  *   A class whose instances are filters over Modifier bits.
@@ -43,7 +43,7 @@
  */
 
 public
-class ModifierFilter extends java.lang.reflect.Modifier {
+class ModifierFilter {
 
     /**
     * Package private access.