RFR: 8234153: [TEST_BUG] Rewrite Popup_parentWindow_Test [v2]

Lukasz Kostyra lkostyra at openjdk.org
Wed Apr 9 08:18:56 UTC 2025


On Wed, 9 Apr 2025 07:45:57 GMT, Ambarish Rapte <arapte at openjdk.org> wrote:

>> Lukasz Kostyra has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Replace fail() calls with assertions
>
> modules/javafx.graphics/src/test/java/test/javafx/stage/Popup_owner_Test.java line 2:
> 
>> 1: /*
>> 2:  * Copyright (c) 2011, 2025, Oracle and/or its affiliates. All rights reserved.
> 
> Either we should use `git mv <oldFile> <newFile>` here to retain the file commit history.
> or
> As the test changed a lot from before, we could choose not to do `git mv`, in the case the copyright in new file should be only 2025
> 
> I would recommend to `git mv` as a general good practice.

This was done with `git mv`. The problem is that the similarity between the old file and new file was too little for Git to consider this to be an actual rename, even when using `git mv`. I believe the similarity index threshold in Git is 50%.

The only way to achieve this would be to split it into two separate commits - rename, then rewrite - but that will still disappear since Skara will squish all the commits in a PR into one.

I will update the copyright header to just say `2025` since that is the case.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1763#discussion_r2034748053


More information about the openjfx-dev mailing list