New MediaQuery tests fail to compile with TEST_SDK_PATH

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: jfx26
    • Component/s: javafx
    • None

      When trying to run the tests using -PTEST_SDK_PATH=<path> and -PTEST_ONLY=true, the newly added / updated MediaQuery tests fail to compile:

      modules/javafx.graphics/src/test/java/test/javafx/css/CssParser_mediaQuery_Test.java:29: error: cannot find symbol
      import com.sun.javafx.css.media.SizeQueryType;
                                     ^
        symbol: class SizeQueryType
        location: package com.sun.javafx.css.media
      ...

      modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/media/MediaQuerySerializerTest.java:29: error: cannot find symbol
      import com.sun.javafx.css.media.SizeQueryType;
                                     ^
        symbol: class SizeQueryType
        location: package com.sun.javafx.css.media
      ...

      modules/javafx.graphics/src/test/java/test/com/sun/javafx/css/media/MediaQueryCacheTest.java:29: error: cannot find symbol
      import com.sun.javafx.css.media.SizeQueryType;
                                     ^
        symbol: class SizeQueryType
        location: package com.sun.javafx.css.media
      ...

      modules/javafx.graphics/src/test/java/test/javafx/css/StylesheetTest.java:816: error: cannot find symbol
                  FunctionExpression.of("prefers-color-scheme", "dark", _ -> null, ColorScheme.DARK),
                                    ^
        symbol: method of(String,String,()->null,ColorScheme)
        location: class FunctionExpression
      ...

      These tests compile and execute fine with normal command `gradle :graphics:test`, which is why our GHA tests and other sanity tests passed.

      See JDK-8367327 for the reason this wasn't seen in normal test runs.

            Assignee:
            Kevin Rushforth
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: