On Thu, 27 May 2021 13:28:33 GMT, Erik Joelsson <er...@openjdk.org> wrote:

>> I don't have a solution for this problem. AFAIK there are a few things that 
>> have to be "bumped" manually between releases, and this would be yet 
>> another. Obviously not a great solution.
>
> Yes, there are a few things, but in the build itself, we are down to a single 
> config file today, so I would really appreciate if this could be figured out. 
> I can provide the implementation for generating this, but I need to 
> understand what the expected pattern is. From what I can see, it looks like 
> $(sequence N, M) where N is the last LTS+1 and M is current JDK version. Then 
> the string has "JDK N" in it. M is already well defined, so the only new 
> input here is N, which we could move to the version numbers config file 
> (make/conf/version-numbers.conf). Something like 
> DEFAULT_VERSION_DOCS_API_SINCE=11. There is some additional boilerplate 
> needed, and the sequence macro of course, but does this sound reasonable to 
> you?

We actually have a sequence macro already, so generating the list can be done 
like this:

$(call CommaList,$(call sequence 12, 17))

Or if what you have is 11 and 17:

$(call CommaList, $(filter-out 11, $(call sequence 11, 17)))

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

PR: https://git.openjdk.java.net/jdk/pull/4209

Reply via email to