RFR: 8342642: Class loading failure due to archived map issue in ModuleLoaderMap.Mapper
Jiangli Zhou
jiangli at openjdk.org
Thu Oct 24 20:20:08 UTC 2024
On Wed, 23 Oct 2024 22:14:13 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:
> Please review the fix that uses String type for the mapped value in ModuleLoaderMap.Mapper map (Map<String, String>). Please see details in https://bugs.openjdk.org/browse/JDK-8342642, thanks.
I brought up this issue in today's Leyden/premain meeting. There was a good discussion on the specific issue, and the general Integer cache archiving and identity hash problem. The conclusion was it's better to avoid using boxed Integer and go with String in ModuleLoaderMap.Mapper.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21672#issuecomment-2436262114
More information about the core-libs-dev
mailing list