[8u] RFR bad source/target in Makefile of J2DBench

Hohensee, Paul hohensee at amazon.com
Thu Nov 4 20:47:13 UTC 2021


The use of -source 1.5 -target 1.5 in J2DBench/Makefile doesn't correspond to the comment in the README, which says that 1.6 is the minimum due to jdk9's javac. The original jdk9 patch used -source 1.6 and -target 1.6, so I'd do the same and also leave the README comment alone.  A reference to a later JDK is fine in a backport.

The patch to CMMTests.java is missing the spelling update to the definition and use of usePlatfromProfiles and usePlatfrom. To be sure, it's a nop, but should be done to keep any future backport(s) consistent.

Otherwise lgtm.

Thanks,
Paul

-----Original Message-----
From: jdk8u-dev <jdk8u-dev-retn at openjdk.java.net> on behalf of Jiri Vanek <jvanek at redhat.com>
Date: Thursday, November 4, 2021 at 12:29 PM
To: Andrew Hughes <gnu.andrew at redhat.com>
Cc: "jdk8u-dev at openjdk.java.net" <jdk8u-dev at openjdk.java.net>
Subject: Re: [8u] RFR bad source/target in Makefile of J2DBench

ping please!

On 10/25/21 20:14, Jiri Vanek wrote:
> Thanx!
>
> webrev adapted: http://cr.openjdk.java.net/~jvanek/bad_j2d_bytecodeversion/webrev/
>
> Compared to original, I had dropepd the build.xml change, as it was not relevant.
>
> The https://bugs.openjdk.java.net/browse/JDK-8042199 is already closed.  Should it be reopened, or new bug will be created?
>
> Thanx!
>   J.
>
>
>
> On 10/25/21 15:37, Andrew Hughes wrote:
>> On 18:56 Thu 21 Oct     , Jiri Vanek wrote:
>>> http://cr.openjdk.java.net/~jvanek/bad_j2d_bytecodeversion/
>>>
>>> Hello! the build.xml (https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/d2bbff5b7006/src/share/demo/java2d/J2DBench/build.xml#l52) is corerect,
>>> and have -source/target correctly on 1.5
>>>
>>> However Mkaefile was left behind, and is on 1.2, which jdk8 itself can not play.
>>>
>>>
>>> Am looking forward for kind soul to create a bug a commit on my behalf.
>>>
>>> Happy hacking,
>>>      J.
>>> --
>>> Jiri Vanek Mgr.
>>> Principal QA Software Engineer
>>> Red Hat Inc.
>>> +420 775 39 01 09
>>>
>>
>> This looks like a subset of:
>>
>> https://bugs.openjdk.java.net/browse/JDK-8042199
>>
>> I think it would be preferable to backport this to keep this code aligned
>> across JDKs. It fixes some other differences between the Makefile &
>> build.xml, as well as actually making it buildable with 1.4, as the
>> README claims.
>>
>> The -g:none addition seemed strange to me, but it seems debug=false
>> has been in build.xml since the start of the OpenJDK project [0].
>> If we want to remove that, we should probably do so in HEAD and
>> backport for consistency across releases.
>>
>> [0] https://mail.openjdk.java.net/pipermail/2d-dev/2014-August/004736.html
>>
>

--
Jiri Vanek Mgr.
Principal QA Software Engineer
Red Hat Inc.
+420 775 39 01 09




More information about the jdk8u-dev mailing list