Skip to content

Commit

Permalink
8319153: Fix: Class is a raw type in ProcessTools
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, mli, lmesnik, jpai
  • Loading branch information
lkorinth committed Nov 6, 2023
1 parent 96e6e67 commit 1c2ea1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lib/jdk/test/lib/process/ProcessTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ public static void main(String[] args) throws Throwable {
String className = args[1];
String[] classArgs = new String[args.length - 2];
System.arraycopy(args, 2, classArgs, 0, args.length - 2);
Class c = Class.forName(className);
Class<?> c = Class.forName(className);
Method mainMethod = c.getMethod("main", new Class[] { String[].class });
mainMethod.setAccessible(true);

Expand Down

3 comments on commit 1c2ea1d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on 1c2ea1d Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk21u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 1c2ea1d Apr 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin the backport was successfully created on the branch backport-GoeLin-1c2ea1d2 in my personal fork of openjdk/jdk21u-dev. To create a pull request with this backport targeting openjdk/jdk21u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 1c2ea1d2 from the openjdk/jdk repository.

The commit being backported was authored by Leo Korinth on 6 Nov 2023 and was reviewed by David Holmes, Hamlin Li, Leonid Mesnik and Jaikiran Pai.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk21u-dev:

$ git fetch https://github.com/openjdk-bots/jdk21u-dev.git backport-GoeLin-1c2ea1d2:backport-GoeLin-1c2ea1d2
$ git checkout backport-GoeLin-1c2ea1d2
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk21u-dev.git backport-GoeLin-1c2ea1d2

Please sign in to comment.