Re: RFR: 8350013: Add a test for JDK-8150442 [v3]

2025-02-28 Thread Alexander Matveev
On Fri, 28 Feb 2025 22:36:32 GMT, Alexey Semenyuk wrote: >> Add a test to verify jpackage is using a custom MSI condition blocking >> package installation depending on the version of Windows where the package >> installer runs. Support for this MSI condition was added in >> [JDK-8150442](https

Re: RFR: 8350013: Add a test for JDK-8150442 [v3]

2025-02-28 Thread Alexey Semenyuk
> Add a test to verify jpackage is using a custom MSI condition blocking > package installation depending on the version of Windows where the package > installer runs. Support for this MSI condition was added in > [JDK-8150442](https://bugs.openjdk.org/browse/JDK-8150442). > > The test adds an

Re: RFR: 8350013: Add a test for JDK-8150442 [v2]

2025-02-27 Thread Alexey Semenyuk
On Fri, 28 Feb 2025 01:34:22 GMT, Alexander Matveev wrote: > With `->` it should not fall into next case. Maybe I am missing something. Right, but there are two `siwtch` blocks in the function. Without `return` the control flow will get to the second one. `return`-s prevents this. ---

Re: RFR: 8350013: Add a test for JDK-8150442 [v2]

2025-02-27 Thread Alexander Matveev
On Fri, 28 Feb 2025 01:17:19 GMT, Alexey Semenyuk wrote: > Yes. It should exit the function early to avoid jumping in the next switch > block. With `->` it should not fall into next case. Maybe I am missing something. - PR Review Comment: https://git.openjdk.org/jdk/pull/23825#dis

Re: RFR: 8350013: Add a test for JDK-8150442 [v2]

2025-02-27 Thread Alexey Semenyuk
> Add a test to verify jpackage is using a custom MSI condition blocking > package installation depending on the version of Windows where the package > installer runs. Support for this MSI condition was added in > [JDK-8150442](https://bugs.openjdk.org/browse/JDK-8150442). > > The test adds an

Re: RFR: 8350013: Add a test for JDK-8150442 [v2]

2025-02-27 Thread Alexey Semenyuk
On Thu, 27 Feb 2025 23:48:19 GMT, Alexander Matveev wrote: > Do we really need return here and at line 495? Yes. It should exit the function early to avoid jumping in the next `switch` block. > do you think it might be better to make `switch` consistent? Totally! - PR Review Co

Re: RFR: 8350013: Add a test for JDK-8150442

2025-02-27 Thread Alexander Matveev
On Thu, 27 Feb 2025 14:17:30 GMT, Alexey Semenyuk wrote: > Add a test to verify jpackage is using a custom MSI condition blocking > package installation depending on the version of Windows where the package > installer runs. Support for this MSI condition was added in > [JDK-8150442](https://b

Re: RFR: 8350013: Add a test for JDK-8150442

2025-02-27 Thread Alexey Semenyuk
On Thu, 27 Feb 2025 14:17:30 GMT, Alexey Semenyuk wrote: > Add a test to verify jpackage is using a custom MSI condition blocking > package installation depending on the version of Windows where the package > installer runs. Support for this MSI condition was added in > [JDK-8150442](https://b

RFR: 8350013: Add a test for JDK-8150442

2025-02-27 Thread Alexey Semenyuk
Add a test to verify jpackage is using a custom MSI condition blocking package installation depending on the version of Windows where the package installer runs. Support for this MSI condition was added in [JDK-8150442](https://bugs.openjdk.org/browse/JDK-8150442). The test adds an unconditiona