On Mon, 6 Feb 2023 06:57:43 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

> Can I please get a review for this change which proposes to fix the issue 
> noted in https://bugs.openjdk.org/browse/JDK-8301834?
> 
> Some classes in `java.nio` package are generated from template files, during 
> the build. The template files are processed by a build tool implemented by a 
> Java class `make/jdk/src/classes/build/tools/spp/Spp.java`. This template 
> processing tool allows for an (optional) parameter called `-nel` which as per 
> its documentation:
> 
>>  If -nel is declared then empty lines will not be substituted for lines of
>>  text in the template that do not appear in the output.
> 
> Various places in the JDK build where this tool is used to generate source 
> from template files, already use the `-nel` option to not generate the empty 
> lines in the source files. However, the `GensrcBuffer.gmk` which generates 
> the source for `java.nio` classes doesn't use this option. The commit in this 
> PR adds this option when generating the `java.nio` classes.
> 
> Existing tests in `test/jdk/java/nio` continue to pass after this change. 
> I've checked the generated content and compared it with the older versions to 
> verify that these empty lines no longer appear in these generated classes.
> 
> Additional `tier` testing has been triggered to make sure no regression is 
> introduced.

This pull request has been closed without being integrated.

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

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

Reply via email to