On Tue, 3 Mar 2026 01:12:13 GMT, Alexander Matveev <[email protected]> wrote:
>> Change how jpackage embeds icons, version and other properties in .exe files.
>> Don't print
>>
>> Warning: Windows Defender may prevent jpackage from functioning. If there is
>> an issue, it can be addressed by either disabling realtime monitoring, or
>> adding an exclusion for the directory <TMPDIR>.
>>
>>
>> warning. Instead, run the operation with retries.
>>
>> Additionally, throw JPackageException instead of RuntimeException to report
>> errors; fail if invalid data is passed in the ctor instead of logging and
>> ignoring it.
>
> src/jdk.jpackage/windows/classes/jdk/jpackage/internal/ExecutableRebrander.java
> line 220:
>
>> 218: Objects.requireNonNull(v);
>> 219: if (v.contains("\r") || v.contains("\n")) {
>> 220: throw new IllegalArgumentException("Configuration parameter
>> contains multiple lines of text");
>
> Should we have localized error for user input?
No. It is internal and should never occur. If it does, it would indicate a bug
in higher level input data validation code.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29906#discussion_r2875551531