--- old/test/runtime/logging/DefaultMethodsTest.java 2016-01-12 14:50:55.879802500 -0500 +++ new/test/runtime/logging/DefaultMethodsTest.java 2016-01-12 14:50:55.740440534 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * 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 @@ -26,7 +26,6 @@ * @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 @@ -37,9 +36,11 @@ import jdk.test.lib.ProcessTools; public class DefaultMethodsTest { + // Each ProcessBuilder should disable CDS with -Xshare:off so that no steps + // that produce necessary logging are skipped. public static void main(String[] args) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( - "-Xlog:defaultmethods=debug", "-version"); + "-Xlog:defaultmethods=debug", "-Xshare:off", "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); output.shouldContain("Slots that need filling:"); output.shouldContain("requires default method processing");