jdk/test/java/util/logging/TestLoggerWeakRefLeak.java
changeset 34327 50693d25f4a7
parent 30820 0d4717a011d3
child 35768 7066da300a08
--- a/jdk/test/java/util/logging/TestLoggerWeakRefLeak.java	Mon Nov 23 10:36:15 2015 -0800
+++ b/jdk/test/java/util/logging/TestLoggerWeakRefLeak.java	Mon Nov 23 11:49:04 2015 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 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
@@ -128,7 +128,7 @@
         int instanceCount = 0;
 
         HotSpotVirtualMachine vm = (HotSpotVirtualMachine) VirtualMachine
-                .attach(Integer.toString(ProcessTools.getProcessId()));
+                .attach(Long.toString(ProcessTools.getProcessId()));
         try {
             try (InputStream heapHistoStream = vm.heapHisto("-live");
                     BufferedReader in = new BufferedReader(new InputStreamReader(heapHistoStream))) {