--- old/test/hotspot/jtreg/runtime/CommandLine/ObsoleteFlagErrorMessage.java 2018-02-08 15:36:52.710147265 -0500 +++ new/test/hotspot/jtreg/runtime/CommandLine/ObsoleteFlagErrorMessage.java 2018-02-08 15:36:52.114718289 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2018, 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 @@ -50,5 +50,10 @@ OutputAnalyzer output2 = new OutputAnalyzer(pb2.start()); output2.shouldContain("Ignoring option").shouldContain("support was removed"); output2.shouldContain("ConvertSleepToYield"); + + pb2 = ProcessTools.createJavaProcessBuilder("-XX:+MustCallLoadClassInternal", "-version"); + output2 = new OutputAnalyzer(pb2.start()); + output2.shouldContain("Ignoring option").shouldContain("support was removed"); + output2.shouldContain("MustCallLoadClassInternal"); } }