test/hotspot/jtreg/runtime/appcds/test-classes/HelloExt.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
open Cdiff test/hotspot/jtreg/runtime/appcds/test-classes/HelloExt.java
test/hotspot/jtreg/runtime/appcds/test-classes/HelloExt.java
Print this page
rev 49875 : [mq]: AppCDS_tests_update
*** 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.
*** 25,35 ****
import sun.hotspot.WhiteBox;
public class HelloExt {
public static void main(String[] args) throws Throwable {
! String className = "org.omg.CORBA.ORB";
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);
--- 25,35 ----
import sun.hotspot.WhiteBox;
public class HelloExt {
public static void main(String[] args) throws Throwable {
! 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