-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
8u172
-
x86_64
-
os_x
FULL PRODUCT VERSION :
java version "1.8.0_172-ea"
Java(TM) SE Runtime Environment (build 1.8.0_172-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
macOS 10.12.6
A DESCRIPTION OF THE PROBLEM :
When using ALT-DEL in an HTMLEditor, two words are deleted instead of one. I.e. if you have the text
"This is a test."
and place the cursor on "is" and press ALT-DEL the result is "This test" instead of "This a test".
REGRESSION. Last worked in version 8u151
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Write "This is a test." in an HTMLEditor, place the cursor on the beginning of "is" and press ALT-DEL.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It should show "This a test.".
ACTUAL -
It shows "This test".
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class Controller implements Initializable {
public HTMLEditor htmlEditor;
@Override
public void initialize(URL location, ResourceBundle resources) {
htmlEditor.setHtmlText("<html>\n" +
"<head>\n" +
" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n" +
"</head>\n" +
"<body style=\"font-family: san-serif\">\n" +
"<p>This is a test.</p>\n" +
"</body>\n" +
"</html>");
}
public void onPrintConsole(ActionEvent actionEvent) {
System.out.println(htmlEditor.getHtmlText());
}
}
and
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="433.0" prefWidth="671.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.bug4_htmleditor.Controller">
<center>
<HTMLEditor fx:id="htmlEditor" />
</center>
<bottom>
<ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<items>
<Button mnemonicParsing="false" onAction="#onPrintConsole" text="Print to console" />
</items>
</ToolBar>
</bottom>
</BorderPane>
---------- END SOURCE ----------
java version "1.8.0_172-ea"
Java(TM) SE Runtime Environment (build 1.8.0_172-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
macOS 10.12.6
A DESCRIPTION OF THE PROBLEM :
When using ALT-DEL in an HTMLEditor, two words are deleted instead of one. I.e. if you have the text
"This is a test."
and place the cursor on "is" and press ALT-DEL the result is "This test" instead of "This a test".
REGRESSION. Last worked in version 8u151
ADDITIONAL REGRESSION INFORMATION:
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Write "This is a test." in an HTMLEditor, place the cursor on the beginning of "is" and press ALT-DEL.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It should show "This a test.".
ACTUAL -
It shows "This test".
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class Controller implements Initializable {
public HTMLEditor htmlEditor;
@Override
public void initialize(URL location, ResourceBundle resources) {
htmlEditor.setHtmlText("<html>\n" +
"<head>\n" +
" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n" +
"</head>\n" +
"<body style=\"font-family: san-serif\">\n" +
"<p>This is a test.</p>\n" +
"</body>\n" +
"</html>");
}
public void onPrintConsole(ActionEvent actionEvent) {
System.out.println(htmlEditor.getHtmlText());
}
}
and
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="433.0" prefWidth="671.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.bug4_htmleditor.Controller">
<center>
<HTMLEditor fx:id="htmlEditor" />
</center>
<bottom>
<ToolBar prefHeight="40.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<items>
<Button mnemonicParsing="false" onAction="#onPrintConsole" text="Print to console" />
</items>
</ToolBar>
</bottom>
</BorderPane>
---------- END SOURCE ----------