8067421: java -help contains information about "-version:",'-jre-restrict-search', '-no-jre-restrict-search', but they are removed
8067411: tools/launcher/MultipleJRE.sh requires adjustments to work with module boundaries 8067290: Missing bug id in test/tools/launcher/* Reviewed-by: darcy
This commit is contained in:
parent
9e2cda5c02
commit
f8fe49013d
jdk
src/java.base/share/classes/sun/launcher/resources
test/tools/launcher
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -46,11 +46,7 @@ java.launcher.opt.footer =\ -cp <class search path of directories and zip
|
|||||||
\ -verbose:[class|gc|jni]\n\
|
\ -verbose:[class|gc|jni]\n\
|
||||||
\ enable verbose output\n\
|
\ enable verbose output\n\
|
||||||
\ -version print product version and exit\n\
|
\ -version print product version and exit\n\
|
||||||
\ -version:<value>\n\
|
|
||||||
\ require the specified version to run\n\
|
|
||||||
\ -showversion print product version and continue\n\
|
\ -showversion print product version and continue\n\
|
||||||
\ -jre-restrict-search | -no-jre-restrict-search\n\
|
|
||||||
\ include/exclude user private JREs in the version search\n\
|
|
||||||
\ -? -help print this help message\n\
|
\ -? -help print this help message\n\
|
||||||
\ -X print help on non-standard options\n\
|
\ -X print help on non-standard options\n\
|
||||||
\ -ea[:<packagename>...|:<classname>]\n\
|
\ -ea[:<packagename>...|:<classname>]\n\
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# @test MultipleJRE.sh
|
# @test MultipleJRE.sh
|
||||||
# @bug 4811102 4953711 4955505 4956301 4991229 4998210 5018605 6387069 6733959
|
# @bug 4811102 4953711 4955505 4956301 4991229 4998210 5018605 6387069 6733959 8058407 8067421
|
||||||
# @build PrintVersion
|
# @build PrintVersion
|
||||||
# @build UglyPrintVersion
|
# @build UglyPrintVersion
|
||||||
# @build ZipMeUp
|
# @build ZipMeUp
|
||||||
# @run shell MultipleJRE.sh
|
# @run shell MultipleJRE.sh
|
||||||
# @summary Verify Multiple JRE version support has been removed
|
# @summary Verify Multiple JRE version support has been removed
|
||||||
# @author Joseph E. Kowalski
|
# @author Joseph E. Kowalski
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -90,6 +89,36 @@ TestSyntax() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Shell routine to ensure help page does not include mjre options
|
||||||
|
#
|
||||||
|
TestHelp() {
|
||||||
|
mess="`$JAVA -help 2>&1`"
|
||||||
|
# make sure it worked
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "java -help failed ????"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $mess | grep '\-version:<value>' > /dev/null 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "help message contains obsolete option version:<value>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $mess | grep '\-jre-restrict-search' > /dev/null 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "help message contains obsolete option jre-restrict-search"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $mess | grep '\-no-jre-restrict-search' > /dev/null 2>&1
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "help message contains obsolete option no-jre-restrict-search"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Just as the name says. We sprinkle these in the appropriate location
|
# Just as the name says. We sprinkle these in the appropriate location
|
||||||
# in the test file system and they just say who they are pretending to be.
|
# in the test file system and they just say who they are pretending to be.
|
||||||
@ -457,7 +486,8 @@ fi
|
|||||||
LaunchVM "" "${RELEASE}"
|
LaunchVM "" "${RELEASE}"
|
||||||
# Going to silently ignore JRE-Version setting in jar file manifest
|
# Going to silently ignore JRE-Version setting in jar file manifest
|
||||||
#LaunchVM "" "warning: The jarfile JRE-Version"
|
#LaunchVM "" "warning: The jarfile JRE-Version"
|
||||||
|
|
||||||
|
# Verify help does not contain obsolete options
|
||||||
|
TestHelp
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -27,12 +27,9 @@
|
|||||||
* This stub simply prints out the java version string. It is used
|
* This stub simply prints out the java version string. It is used
|
||||||
* by MultipleJRE.sh.
|
* by MultipleJRE.sh.
|
||||||
*/
|
*/
|
||||||
import sun.misc.Version;
|
|
||||||
|
|
||||||
public class PrintVersion {
|
public class PrintVersion {
|
||||||
|
public static void main(String argv[]) {
|
||||||
public static void main(String argv[]) {
|
System.out.println(System.getProperty("java.version"));
|
||||||
Version.print();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -30,12 +30,8 @@
|
|||||||
*/
|
*/
|
||||||
package reallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallylongpackagename;
|
package reallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallylongpackagename;
|
||||||
|
|
||||||
import sun.misc.Version;
|
|
||||||
|
|
||||||
public class UglyPrintVersion {
|
public class UglyPrintVersion {
|
||||||
|
public static void main(String argv[]) {
|
||||||
public static void main(String argv[]) {
|
System.out.println(System.getProperty("java.version"));
|
||||||
Version.print();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user