JDK-8066588 : javax/management/remote/mandatory/connection/RMIConnector_NPETest.java fails to compile
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-12-03
  • Updated: 2021-10-12
  • Resolved: 2014-12-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9 Other
8u301Fixed 9 b42Fixed openjdk8u322Fixed
Related Reports
Relates :  
Description
The changes in JDK-8035000 changed some common rmi testlibrary, RMID.java, and this test no longer compiles.

STDERR:
/opt/jprt/T/P1/122924.chhegar/s/jdk/test/javax/management/remote/mandatory/connection/RMIConnector_NPETest.java:64: error: method shutdown in class RMID cannot be applied to given types;
            rmid.shutdown(rmidPort);
                ^
  required: no arguments
  found: int
  reason: actual and formal argument lists differ in length
1 error

Comments
Fix Request [8u] (on behalf of Anton Ostrouhhov) Requesting to backport this fix into 8u for 8u322. JDK-8035000 was backported to 8u and, therefore, test does not compile in 8u too. Patch applies cleanly.
04-10-2021

URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/7aa02691f6db User: lana Date: 2014-12-10 19:55:01 +0000
10-12-2014

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/7aa02691f6db User: chegar Date: 2014-12-03 19:49:03 +0000
03-12-2014

The test should call RMID destroy() instead of shutdown(..).
03-12-2014