7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8239384
27 * @library /test/lib
28 * @build jdk.test.lib.Utils
29 * jdk.test.lib.compiler.CompilerUtils
30 * @run testng/othervm InheritedProtectedMethod
31 * @summary Test method reference to a method inherited from its
32 * superclass in a different package. Such method's modifier
33 * is changed from public to protected.
34 */
35
36 import jdk.test.lib.compiler.CompilerUtils;
37 import jdk.test.lib.Utils;
38
39 import org.testng.annotations.BeforeTest;
40 import org.testng.annotations.DataProvider;
41 import org.testng.annotations.Test;
42
43 import java.io.IOException;
44 import java.lang.reflect.Method;
45 import java.net.URL;
46 import java.net.URLClassLoader;
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8239384
27 * @modules jdk.compiler
28 * @library /test/lib
29 * @build jdk.test.lib.Utils
30 * jdk.test.lib.compiler.CompilerUtils
31 * @run testng/othervm InheritedProtectedMethod
32 * @summary Test method reference to a method inherited from its
33 * superclass in a different package. Such method's modifier
34 * is changed from public to protected.
35 */
36
37 import jdk.test.lib.compiler.CompilerUtils;
38 import jdk.test.lib.Utils;
39
40 import org.testng.annotations.BeforeTest;
41 import org.testng.annotations.DataProvider;
42 import org.testng.annotations.Test;
43
44 import java.io.IOException;
45 import java.lang.reflect.Method;
46 import java.net.URL;
47 import java.net.URLClassLoader;
|