This is an automated email from the ASF dual-hosted git repository. jtulach pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git
commit f902f315d9cd1e8c172262fbfdfc2e05e2f4b506 Author: Jaroslav Tulach <[email protected]> AuthorDate: Wed Jan 2 10:46:30 2019 +0100 ant test-platform -Dtest.includes=Nothing compiles --- nbbuild/build.xml | 2 ++ .../test/unit/src/org/openide/filesystems/JarFileSystemHidden.java | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nbbuild/build.xml b/nbbuild/build.xml index 64fb35f..15b2dc5 100644 --- a/nbbuild/build.xml +++ b/nbbuild/build.xml @@ -465,6 +465,8 @@ Hg ID: ${hg.id} <property name="cluster.config" value="platform"/> <property name="test.type" value="test-unit"/> <property name="test-unit-sys-prop.ignore.random.failures" value="true"/> + <property name="permit.jdk9.builds" value="true"/> + <property name="vanilla.javac.exists" value="true"/> </ant> </target> diff --git a/platform/openide.filesystems/test/unit/src/org/openide/filesystems/JarFileSystemHidden.java b/platform/openide.filesystems/test/unit/src/org/openide/filesystems/JarFileSystemHidden.java index 67cec3b..23f02ee 100644 --- a/platform/openide.filesystems/test/unit/src/org/openide/filesystems/JarFileSystemHidden.java +++ b/platform/openide.filesystems/test/unit/src/org/openide/filesystems/JarFileSystemHidden.java @@ -159,7 +159,9 @@ public class JarFileSystemHidden extends NbTestCase { // sign the jar try { - sun.security.tools.jarsigner.Main.main(new String[]{ + Class<?> jarSignererMain = Class.forName("sun.security.tools.jarsigner.Main"); + Method main = jarSignererMain.getMethod("main", String[].class); + main.invoke(null, (Object) new String[]{ "-keystore", keystoreFile.getAbsolutePath(), "-storepass", "testpass", jarFile.getAbsolutePath(), --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
