[lworld] RFR: 8331606: [lworld] javac should consider some library classes as value classes [v3]

Vicente Romero vromero at openjdk.org
Fri May 10 16:21:30 UTC 2024


On Thu, 9 May 2024 15:58:23 GMT, Vicente Romero <vromero at openjdk.org> wrote:

>> For some library classes two compiled versions are produced, one is the legacy class file and the other one is a class file representing a value class. The version representing a value class is stored in a separate jar. During compilation of classes using one of these library classes javac loads the vanilla version. But if preview features are enabled, javac should act as if the loaded class was the one representing the value class. So basically javac's class loader needs to massage the flags in the loaded class so that the rest of the compiler pipeline can handle it as a value class. This PR is proposing an annotation to mark these classes so that they can be identified by javac without having to keep an internal list of classes that will need to be maintained,
>> 
>> TIA
>
> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
> 
>   addressing review comments

thanks for the comments!

-------------

PR Comment: https://git.openjdk.org/valhalla/pull/1104#issuecomment-2104881295



More information about the valhalla-dev mailing list