JDK-8245183 : Two fxml unit tests log warnings about deprecated escape sequences
  • Type: Bug
  • Component: javafx
  • Sub-Component: fxml
  • Affected Version: openjfx15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-05-18
  • Updated: 2020-07-02
  • Resolved: 2020-05-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjfx15Fixed
Related Reports
Relates :  
Description
test.javafx.fxml.RT_27529Test > testListAndArrayWithEscapes logs below warnings on STANDARD_ERROR

    @@ is a deprecated escape sequence. Please use \@ instead.
    %% is a deprecated escape sequence. Please use \% instead.
    $$ is a deprecated escape sequence. Please use \$ instead.
    @@ is a deprecated escape sequence. Please use \@ instead.
    %% is a deprecated escape sequence. Please use \% instead.
    $$ is a deprecated escape sequence. Please use \$ instead.

Expected :
Fix the test so that no warnings get logged.
Comments
Changeset: 6e0b45a3 Author: Ajit Ghaisas <aghaisas@openjdk.org> Date: 2020-05-22 05:06:31 +0000 URL: https://git.openjdk.java.net/jfx/commit/6e0b45a3
22-05-2020

Since we still support these escape sequences, it is decided that - we should add a message to the test saying "these are expected warnings"
20-05-2020

We need to decide what to do with this - It would be either - fix the warning by fixing the tests - OR - add a message to the test saying "these are expected warnings"
19-05-2020

This is the behavior introduced in JavaFX 2.1. Looks like these warnings are expected - https://docs.oracle.com/javase/8/javafx/fxml-tutorial/jfx2_x-features.htm#BGGGGFJA
19-05-2020

Also, test.javafx.fxml.FXMLLoader_ExpressionTest > testEscapeSequences logs this.
19-05-2020