< prev index next >

test/tools/jlink/JLinkTest.java

Print this page

        

*** 272,290 **** // orphan argument - JDK-8166810 { String[] userOptions = {"--compress", "2", "foo" }; String moduleName = "orphanarg1"; helper.generateDefaultJModule(moduleName, "composite2"); ! helper.generateDefaultImage(userOptions, moduleName).assertFailure("Error: orphan argument: foo"); } // orphan argument - JDK-8166810 { String[] userOptions = {"--output", "foo", "bar" }; String moduleName = "orphanarg2"; helper.generateDefaultJModule(moduleName, "composite2"); ! helper.generateDefaultImage(userOptions, moduleName).assertFailure("Error: orphan argument: bar"); } // basic check for --help - JDK-8173717 { JImageGenerator.getJLinkTask() --- 272,290 ---- // orphan argument - JDK-8166810 { String[] userOptions = {"--compress", "2", "foo" }; String moduleName = "orphanarg1"; helper.generateDefaultJModule(moduleName, "composite2"); ! helper.generateDefaultImage(userOptions, moduleName).assertFailure("Error: invalid argument: foo"); } // orphan argument - JDK-8166810 { String[] userOptions = {"--output", "foo", "bar" }; String moduleName = "orphanarg2"; helper.generateDefaultJModule(moduleName, "composite2"); ! helper.generateDefaultImage(userOptions, moduleName).assertFailure("Error: invalid argument: bar"); } // basic check for --help - JDK-8173717 { JImageGenerator.getJLinkTask()
< prev index next >