< prev index next >

test/hotspot/jtreg/runtime/appcds/test-classes/EmptyClassHelper.java

Print this page
rev 51958 : 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn

*** 1,7 **** /* ! * Copyright (c) 2015, 2017, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2015, 2018, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 21,33 **** * questions. * */ import java.lang.*; ! import java.lang.reflect.*; ! import jdk.internal.misc.JavaLangAccess; ! import jdk.internal.misc.SharedSecrets; class EmptyClassHelper { static final JavaLangAccess jla = SharedSecrets.getJavaLangAccess(); static final String USE_APP = "useAppLoader"; public static void main(String[] args) throws Exception { --- 21,34 ---- * questions. * */ import java.lang.*; ! ! import java.lang.reflect.Method; ! import jdk.internal.access.JavaLangAccess; ! import jdk.internal.access.SharedSecrets; class EmptyClassHelper { static final JavaLangAccess jla = SharedSecrets.getJavaLangAccess(); static final String USE_APP = "useAppLoader"; public static void main(String[] args) throws Exception {
< prev index next >