8178731: compiler/ciReplay/SABase.java does not compile
authoriignatyev
Fri, 14 Apr 2017 18:31:04 -0700
changeset 44636 a50cc126180c
parent 44635 8e526eee3e18
child 44637 c4a00600fa1f
child 44698 81ebf45c6c8c
child 44736 9de61461a0e4
8178731: compiler/ciReplay/SABase.java does not compile Reviewed-by: iignatyev, sspitsyn Contributed-by: ekaterina.pavlova@oracle.com
hotspot/test/compiler/ciReplay/SABase.java
hotspot/test/serviceability/sa/sadebugd/SADebugDTest.java
--- a/hotspot/test/compiler/ciReplay/SABase.java	Thu Apr 13 16:26:36 2017 +0000
+++ b/hotspot/test/compiler/ciReplay/SABase.java	Fri Apr 14 18:31:04 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2017, 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
@@ -141,7 +141,7 @@
         if (Platform.isSolaris()) {
             try {
                 OutputAnalyzer oa = ProcessTools.executeProcess("coreadm", "-p", "core",
-                        "" + ProcessHandle.current().getPid());
+                        "" + ProcessHandle.current().pid());
                 oa.shouldHaveExitValue(0);
             } catch (Throwable t) {
                 throw new Error("Can't launch coreadm: " + t, t);
--- a/hotspot/test/serviceability/sa/sadebugd/SADebugDTest.java	Thu Apr 13 16:26:36 2017 +0000
+++ b/hotspot/test/serviceability/sa/sadebugd/SADebugDTest.java	Fri Apr 14 18:31:04 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2017, 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
@@ -60,7 +60,7 @@
             return;
         }
 
-        long ourPid = ProcessHandle.current().getPid();
+        long ourPid = ProcessHandle.current().pid();
 
         // The string we are expecting in the debugd ouput
         String golden = String.format(GOLDEN, ourPid);