JDK-8303495 : Unused path parameter in ClassLoader::add_to_app_classpath_entries(JavaThread* current, char* path, ...)
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-03-02
  • Updated: 2023-05-23
  • Resolved: 2023-03-10
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 21
21 b14Fixed
Related Reports
Relates :  
Description
void ClassLoader::add_to_app_classpath_entries(JavaThread* current,
                                               const char* path,
                                               ClassPathEntry* entry,
                                               bool check_for_duplicates) {

The path parameter is unused since  the check for its existence was removed by JDK-8193213:

-  } else {
-    if (!os::dir_is_empty(path)) {
-      tty->print_cr("Error: non-empty directory '%s'", path);
-      exit_with_path_failure("Cannot have non-empty directory in app classpaths", NULL);
-    }
Comments
Changeset: c26e1d01 Author: Matias Saavedra Silva <matsaave@openjdk.org> Committer: Coleen Phillimore <coleenp@openjdk.org> Date: 2023-03-10 16:31:41 +0000 URL: https://git.openjdk.org/jdk/commit/c26e1d0148de27d0b257ec10380a5c50483fd3c0
10-03-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12889 Date: 2023-03-06 21:15:56 +0000
07-03-2023