RFR: 8347755: Support static library in jmod [v4]
Severin Gehwolf
sgehwolf at openjdk.org
Mon Mar 10 09:34:08 UTC 2025
On Sun, 9 Mar 2025 08:08:33 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> I guess its worth asking how would the format evolve in the future if more than `/static-lib` were added? Just as a strawman: say `/docs` and `/sources` were added in some sequence. Would this grow to say
>>
>>
>> if (<nothing new>) {
>> // 1.0
>> }
>> else if (<just static-lib>) {
>> // 1.1
>> }
>> else {
>> // 1.2
>> }
>>
>>
>> What if `/sources` (and corresponding generation of `src.zip`) were added first and `/docs` second?
>>
>>
>> if (<nothing new>) {
>> // 1.0
>> }
>> else if (<just static-lib>) {
>> // 1.1
>> }
>> else if (<just sources +/- static-lib>) {
>> // 1.2
>> }
>> else {
>> // 1.3
>> }
>>
>>
>> Or would, at that point, versioning move to be closer to what is done for classfiles.
>
>> I guess its worth asking how would the format evolve in the future if more than `/static-lib` were added?
>
> Unlike the JAR format, the JMOD format requires an update when new sections are added. We don't need to get hung up on any of the details around this now, most of the work to support this will be in jlink, not the jmod tool.
I'm ok with this for the leyden branch.
-------------
PR Review Comment: https://git.openjdk.org/leyden/pull/46#discussion_r1986918228
More information about the leyden-dev
mailing list