https://issues.apache.org/bugzilla/show_bug.cgi?id=54586
--- Comment #6 from Philippe Mouawad <[email protected]> --- I created the bug with sample program: package org.apache.jmeter; import javax.swing.JEditorPane; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.text.EditorKit; public class Bug { private static final String TEXT_HTML = "text/html"; private static final EditorKit defaultHtmlEditor = JEditorPane .createEditorKitForContentType(TEXT_HTML); public static void main(String[] args) { JEditorPane results = new JEditorPane(); results.setEditable(false); results.setEditorKitForContentType(TEXT_HTML, defaultHtmlEditor); results.setContentType(TEXT_HTML); results.getDocument().putProperty("IgnoreCharsetDirective", Boolean.TRUE); try { String html = "<html>" + "<head>" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">" + "<title></title>" + "</head>" + "<frameset rows=\"120px,*\" frameborder=\"0\" border=\"0\" framespacing=\"0\">" + " <frame src=\"http://www.google.com/\" scrolling=\"auto\" name=\"entete\"> " + " <frame src=\"http://www.google.com/\" scrolling=\"auto\" name=\"detail\"> " + "</frameset>" + "<noframes>" + "<body>" + "</body>" + "</noframes>" + "</html>"; results.setText(html); // Bug can generate RTE } catch (Exception e) { results.setContentType("text/html"); results.setText(e.getMessage()); } JScrollPane scrollPane = new JScrollPane(results); JFrame f = new JFrame("Bug"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.getContentPane().add(scrollPane); f.setSize(512, 342); f.show(); } } -- You are receiving this mail because: You are the assignee for the bug.
