test/runtime/logging/DefaultMethodsTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/test/runtime/logging/DefaultMethodsTest.java	Wed Jan 20 11:48:38 2016
--- new/test/runtime/logging/DefaultMethodsTest.java	Wed Jan 20 11:48:38 2016

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2015, 2016, 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.
*** 24,34 **** --- 24,33 ---- /* * @test * @bug 8139564 * @summary defaultmethods=debug should have logging from each of the statements in the code * @library /testlibrary * @ignore 8146435 * @modules java.base/sun.misc * java.management * @build jdk.test.lib.OutputAnalyzer jdk.test.lib.ProcessTools * @run driver DefaultMethodsTest */
*** 36,47 **** --- 35,46 ---- import jdk.test.lib.OutputAnalyzer; import jdk.test.lib.ProcessTools; public class DefaultMethodsTest { public static void main(String[] args) throws Exception { ! ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:defaultmethods=debug", ! "-Xlog:defaultmethods=debug", "-version"); ! InnerClass.class.getName()); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("Slots that need filling:"); output.shouldContain("requires default method processing"); output.shouldContain("Looking for default methods for slot "); output.shouldContain("Creating defaults and overpasses...");
*** 49,55 **** --- 48,60 ---- output.shouldContain("Default method processing complete"); output.shouldContain("overpass methods"); output.shouldContain("default methods"); output.shouldHaveExitValue(0); } + + public static class InnerClass { + public static void main(String[] args) throws Exception { + System.out.println("Inner Class"); + } + } }

test/runtime/logging/DefaultMethodsTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File