次のテストは JRE 1.6.0_20 で失敗します
public void testSetGetTextWithList() throws Exception {
final JEditorPane editorPane = new JEditorPane();
editorPane.setContentType("text/html");
editorPane.setText("<ul><li></li></ul>");
assertTrue(editorPane.getText().contains("<ul"));
}
もちろん、空のリストと存在しないリストには視覚的な違いがあるため、エディターが空のリストを破棄しないことを期待しています。この問題を簡単に解決できる人はいますか?