Skip to content

Commit 169b6e3

Browse files
committed
8313174: Create fewer predictable port clashes in management tests
Reviewed-by: cjplummer, amenkov
1 parent 8650026 commit 169b6e3

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

test/jdk/javax/management/remote/mandatory/passwordAuthenticator/RMIAltAuthTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -71,8 +71,8 @@ public static void main(String[] args) {
7171
//
7272
System.out.println("Start RMI registry...");
7373
Registry reg = null;
74-
int port = 5800;
75-
while (port++ < 6000) {
74+
int port = 5820;
75+
while (port++ < 5840) {
7676
try {
7777
reg = LocateRegistry.createRegistry(port);
7878
System.out.println("RMI registry running on port " + port);

test/jdk/javax/management/remote/mandatory/passwordAuthenticator/RMIPasswdAuthTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -70,7 +70,7 @@ public static void main(String[] args) {
7070
System.out.println("Start RMI registry...");
7171
Registry reg = null;
7272
int port = 5800;
73-
while (port++ < 6000) {
73+
while (port++ < 5820) {
7474
try {
7575
reg = LocateRegistry.createRegistry(port);
7676
System.out.println("RMI registry running on port " + port);

test/jdk/javax/management/remote/mandatory/socketFactories/RMISocketFactoriesTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -58,8 +58,8 @@ public static void main(String[] args) {
5858
//
5959
System.out.println("Start RMI registry...");
6060
Registry reg = null;
61-
int port = 5800;
62-
while (port++ < 6000) {
61+
int port = 5840;
62+
while (port++ < 5860) {
6363
try {
6464
reg = LocateRegistry.createRegistry(port);
6565
System.out.println("RMI registry running on port " + port);

test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation1Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -76,8 +76,8 @@ public static void main(String[] args) throws Exception {
7676
//
7777
System.out.println("Start RMI registry...");
7878
Registry reg = null;
79-
int port = 5800;
80-
while (port++ < 6000) {
79+
int port = 5860;
80+
while (port++ < 5880) {
8181
try {
8282
reg = LocateRegistry.createRegistry(port);
8383
System.out.println("RMI registry running on port " + port);

test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation2Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -72,8 +72,8 @@ public static void main(String[] args) throws Exception {
7272
//
7373
System.out.println("Start RMI registry...");
7474
Registry reg = null;
75-
int port = 5800;
76-
while (port++ < 6000) {
75+
int port = 5880;
76+
while (port++ < 5900) {
7777
try {
7878
reg = LocateRegistry.createRegistry(port);
7979
System.out.println("RMI registry running on port " + port);

test/jdk/javax/management/remote/mandatory/subjectDelegation/SubjectDelegation3Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -76,8 +76,8 @@ public static void main(String[] args) throws Exception {
7676
//
7777
System.out.println("Start RMI registry...");
7878
Registry reg = null;
79-
int port = 5800;
80-
while (port++ < 6000) {
79+
int port = 5900;
80+
while (port++ < 5920) {
8181
try {
8282
reg = LocateRegistry.createRegistry(port);
8383
System.out.println("RMI registry running on port " + port);

0 commit comments

Comments
 (0)