--- old/jdk/test/sun/net/www/protocol/jrt/OtherResources.java 2016-08-07 17:46:38.000000000 -0700 +++ new/jdk/test/sun/net/www/protocol/jrt/OtherResources.java 2016-08-07 17:46:38.000000000 -0700 @@ -36,7 +36,7 @@ // check that java.desktop is not in the set of readable modules try { Class.forName("java.awt.Component"); - throw new RuntimeException("Need to run with -limitmods java.base"); + throw new RuntimeException("Need to run with --limit-modules java.base"); } catch (ClassNotFoundException expected) { } // access resource in the java.desktop module