Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080153

Cannot disable DPI awareness

XMLWordPrintable

    • 2d
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_20"
      Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
      Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 x64 Professional

      A DESCRIPTION OF THE PROBLEM :
      When i try to add the parameter -Dsun.java2d.dpiaware=false to a certain java process, this do nothing, because the java manifest have a configuration which is overlaying to that.

        <asmv3:application>
          <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
             <dpiAware>true</dpiAware>
          </asmv3:windowsSettings>
        </asmv3:application>

      Because of that i can't change the dpiaware of my process to false, using the flag dpiaware.

      I think the changes that were made to resolve the issue JDK-6829055 are responsible for this problem.

      I don't have this problem in version 1.6.

      REGRESSION. Last worked in version 6u43

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.6.0_38"
      Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      - Set Windows scaling to 200% (remove Windows XP scale mode)
      - Run a graphic application which sets sun.java2d.dpiaware to false.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The application should have been scaled by windows.
      ACTUAL -
      The application was not automatically scaled.
      I expected the interface to become blured.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      It is possible that by changing the manifest this would work again.

            aivanov Alexey Ivanov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: