< prev index next >

test/sun/tools/jinfo/JInfoHelper.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2015, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -58,11 +58,11 @@
             for (String toolArg : toolArgs) {
                 launcher.addToolArg(toolArg);
             }
         }
         if (toPid) {
-            launcher.addToolArg(Integer.toString(ProcessTools.getProcessId()));
+            launcher.addToolArg(Long.toString(ProcessTools.getProcessId()));
         }
 
         ProcessBuilder processBuilder = new ProcessBuilder(launcher.getCommand());
         System.out.println(Arrays.toString(processBuilder.command().toArray()).replace(",", ""));
         OutputAnalyzer output = ProcessTools.executeProcess(processBuilder);
< prev index next >