Skip to content
Permalink
Browse files

8236045: [TESTBUG] MismatchedWhiteBox test fails with missing WhiteBo…

…x$WhiteBoxPermission.class

Reviewed-by: ccheung
  • Loading branch information
iklam committed Dec 16, 2019
1 parent bc97279 commit 924720f6fc8060fcd7024e6fca39223413f690ba
Showing with 10 additions and 1 deletion.
  1. +10 −1 test/hotspot/jtreg/sanity/MismatchedWhiteBox/WhiteBox.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2019, 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
@@ -36,6 +36,15 @@
package sun.hotspot;

public class WhiteBox {
@SuppressWarnings("serial")
public static class WhiteBoxPermission extends java.security.BasicPermission {
// ClassFileInstaller is hard-coded to copy WhiteBox$WhiteBoxPermission, so let's
// make a fake one here as well.
public WhiteBoxPermission(String s) {
super(s);
}
}

private static native void registerNatives();
static { registerNatives(); }
public native int notExistedMethod();

0 comments on commit 924720f

Please sign in to comment.
You can’t perform that action at this time.