1 /* |
1 /* |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
27 import java.lang.reflect.Proxy; |
27 import java.lang.reflect.Proxy; |
28 import java.nio.file.Path; |
28 import java.nio.file.Path; |
29 import java.nio.file.Paths; |
29 import java.nio.file.Paths; |
30 import java.util.Arrays; |
30 import java.util.Arrays; |
31 |
31 |
|
32 import jdk.test.lib.compiler.CompilerUtils; |
32 import static jdk.testlibrary.ProcessTools.executeTestJava; |
33 import static jdk.testlibrary.ProcessTools.executeTestJava; |
33 |
34 |
34 import org.testng.annotations.BeforeTest; |
35 import org.testng.annotations.BeforeTest; |
35 import org.testng.annotations.Test; |
36 import org.testng.annotations.Test; |
36 import static org.testng.Assert.*; |
37 import static org.testng.Assert.*; |
37 |
38 |
38 /** |
39 /** |
39 * @test |
40 * @test |
40 * @library /lib/testlibrary |
41 * @library /lib/testlibrary /test/lib |
41 * @modules jdk.compiler |
42 * @modules jdk.compiler |
42 * @build ProxyTest CompilerUtils jdk.testlibrary.ProcessTools |
43 * @build ProxyTest jdk.testlibrary.ProcessTools |
|
44 * jdk.test.lib.compiler.CompilerUtils |
43 * @run testng ProxyLayerTest |
45 * @run testng ProxyLayerTest |
44 * @summary Test proxies to implement interfaces in a layer |
46 * @summary Test proxies to implement interfaces in a layer |
45 */ |
47 */ |
46 |
48 |
47 public class ProxyLayerTest { |
49 public class ProxyLayerTest { |