Hi Magnus,
I haven't found a way to suppress this warning. I tried. There's no way
to suppress warnings from mt.exe [1] unfortunately.
We're using Visual Studio 2013 to build JDK, the element was added in
2016. Newer versions of Windows SDK should recognise the element.
Yes, it works as intended. It's recognised by Windows 10 v1703 and later
and changes High DPI mode. Other versions of Windows are not affected.
I should've included build-dev into the review process as it affects
build system.
Can the output of mt.exe be redirected? If it's successful, then its
output gets ignored.
Regards,
Alexey
[1]
https://msdn.microsoft.com/en-us/library/windows/desktop/aa375649(v=vs.85).aspx
On 16/04/2018 13:26, Magnus Ihse Bursie wrote:
Hi Alexey,
Since this patch, I'm getting lots of warnings on Windows:
c:/cygwin64/home/magnusi/hg/sandbox/open/src/java.base/windows/native/launcher/java.manifest
: manifest authoring warning 81010002: Unrecognized Element
"dpiAwareness" in namespace
"http://schemas.microsoft.com/SMI/2016/WindowsSettings".
Seems this element is not universally recognized. Does it even work as
intended?
Do you have any suggestion on how to address this issue?
/Magnus
On 2018-04-06 00:39, Alexey Ivanov wrote:
Hello,
Could you please review the fix for jdk11?
bug: https://bugs.openjdk.java.net/browse/JDK-8199627
webrev: http://cr.openjdk.java.net/~aivanov/8199627/webrev.0/
Windows 10 v1703 provides improved High DPI mode: Per-Monitor v2. [1]
<SNIP>
When building, manifest tool generates warning for unknown
<dpiAwareness> element in manifest. It is because an older Windows
SDK is used to build JDK which does not know about an element that
was added later. The build succeeds despite the warning.
Thank you in advance.
Regards,
Alexey
[1]
https://msdn.microsoft.com/library/windows/desktop/mt843498(v=vs.85).aspx#Per-Monitor_and_Per-Monitor__V2__DPI_Awareness_
[2]
https://msdn.microsoft.com/en-us/library/windows/desktop/aa374191(v=vs.85).aspx#dpiAware
[3]
https://msdn.microsoft.com/en-us/library/windows/desktop/aa374191(v=vs.85).aspx#dpiAwareness