On Thu, 17 Nov 2022 06:36:50 GMT, Julian Waters <jwat...@openjdk.org> wrote:

>> 8285093 introduced the new UTIL_ARG_WITH definition, which was not available 
>> when both 8282948 and 8282700 were written. They can now be moved to using 
>> the cleaner logic that UTIL_ARG_WITH grants.
>> 
>> There are many more options that still use AC_ARG_WITH in jdk-version.m4. 
>> They are out of the scope of this commit, which aims only to rework the 
>> previous integrated commits mentioned above.
>
> Julian Waters has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Uh oh

Aaaahhh, **that** bug. I've run into that before. I did attempt to fix it but 
after wasting too many hours I gave up. :-( It seems to be a limitation in m4 
that I cannot understand how to get around. At some point, the string literal, 
even though quoted inside the `[...]`, is expanded and parsed as m4 macro 
expansion arguments. In theory, I should have been able to add an additional 
layer of quoting and then un-quote it once it was past the problematic point, 
but that did not work.

I solved the problem by not solving it, and instead rephrased the message to 
not need the comma. (Imho, this limitation actually improved the quality of the 
descriptions, so it was not bad per se).

But I agree that it is annoying to have such a limitation in 
`UTIL_DEFUN_NAMED`. If you want to have a go at trying to solve it, please do! 
I'll fully admit my shortcomings and state that trying to solve this passes my 
knowledge and ability to manipulate m4. 

Or, maybe, you could add some documentation to `UTIL_DEFUN_NAMED` and 
`UTIL_ARG_WITH`, saying that comma is not allowed in the values.

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

PR: https://git.openjdk.org/jdk/pull/11020

Reply via email to