JDK-8263412 : ClassFileInstaller can't be used by classes outside of default package
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-11
  • Updated: 2023-12-25
  • Resolved: 2021-03-12
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 17
17 b14Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
ClassFileInstaller is in the default package hence it's impossible to use it directly by classes in any other package. although ClassFileInstaller is mainly used directly from jtreg test description, there are cases when one needs to use it in another "driver" class (e.g. to reduce boilerplate), yet to do. that these driver classes have to either be in a default package or use reflection, both approaches have drawbacks.

to solve that, we can move ClassFileInstaller implementation to a package, and to avoid unneeded churn, keep package-less ClassFileInstaller class which will call package-full impl.
Comments
URL: https://github.com/openjdk/jdk/commit/e834f99d1dee8070e626fd1a4657e0522a414ae7 Author: Igor Ignatyev <iignatyev@openjdk.org> Date: Fri Mar 12 23:13:16 2021 +0000
25-12-2023

Changeset: e834f99d Author: Igor Ignatyev <iignatyev@openjdk.org> Date: 2021-03-12 23:13:16 +0000 URL: https://git.openjdk.java.net/jdk/commit/e834f99d
12-03-2021

the need for this patch has raised as part of JDK-8254129.
11-03-2021