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

WebKit build fails with recent VS 2019 compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx16
    • 8u281, jfx16
    • javafx
    • web

        The WebKit build fails with a recent VS 2019 compiler. I tried VS 2019 16.7.1 and got the following failure:

        modules\javafx.web\src\main\native\Source\WebCore\style/StyleResolver.cpp(110): error C2398: Element '1': conversion from 'const char [4]' to 'bool' requires a narrowing conversion

        The line in question is:

                m_mediaQueryEvaluator = MediaQueryEvaluator { "all" };

        It should be using the MediaQueryEvaluator constructor that takes a String, but the conversion of char* to String is failing, so it is it picking the wrong Constructor.

              ajoseph Arun Joseph (Inactive)
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: