test/hotspot/jtreg/runtime/appcds/test-classes/HelloExt.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/test/hotspot/jtreg/runtime/appcds/test-classes/HelloExt.java Tue Apr 24 16:18:43 2018
--- new/test/hotspot/jtreg/runtime/appcds/test-classes/HelloExt.java Tue Apr 24 16:18:43 2018
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
! * 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.
*** 25,35 ****
--- 25,35 ----
import sun.hotspot.WhiteBox;
public class HelloExt {
public static void main(String[] args) throws Throwable {
! String className = "org.omg.CORBA.ORB";
! String className = "javax.annotation.processing.FilerException";
Class cls = Class.forName(className);
ClassLoader loader = cls.getClassLoader();
if (loader != ClassLoader.getPlatformClassLoader()) {
throw new java.lang.RuntimeException(className + " should be load by PlatformClassLoader but it is loaded by " + loader);
test/hotspot/jtreg/runtime/appcds/test-classes/HelloExt.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File