WebKit build fails with recent VS 2019 compiler

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • jfx16
    • Affects Version/s: 8u281, jfx16
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: