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

WebKit build fails with recent VS 2019 compiler

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u281, openjfx16
    • Fix Version/s: openjfx16
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ajoseph Arun Joseph
                  Reporter:
                  kcr Kevin Rushforth
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: