-
Bug
-
Resolution: Fixed
-
P3
-
11, 17, 21, 22, 23
-
b124
-
b17
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8331057 | 22.0.2 | Alexey Ivanov | P3 | Resolved | Fixed | b05 |
JDK-8331469 | 21.0.5-oracle | Alexey Ivanov | P3 | Resolved | Fixed | b01 |
JDK-8333417 | 21.0.5 | Martin Doerr | P3 | Resolved | Fixed | b01 |
JDK-8331473 | 17.0.13-oracle | Alexey Ivanov | P3 | Resolved | Fixed | b01 |
JDK-8333630 | 17.0.13 | Martin Doerr | P3 | Resolved | Fixed | b01 |
JDK-8331475 | 11.0.25-oracle | Alexey Ivanov | P3 | Resolved | Fixed | b01 |
JDK-8334373 | 11.0.25 | Martin Doerr | P3 | Resolved | Fixed | b01 |
JDK-8332838 | 8u431 | Alexey Ivanov | P3 | Resolved | Fixed | b01 |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: javax.swing.text.ChangedCharSetException
at EditorPaneCharset.<init>(EditorPaneCharset.java:37)
<13 internal lines>
Caused by: javax.swing.text.ChangedCharSetException
at java.desktop/javax.swing.text.html.parser.DocumentParser.handleEmptyTag(DocumentParser.java:202)
at java.desktop/javax.swing.text.html.parser.Parser.startTag(Parser.java:504)
at java.desktop/javax.swing.text.html.parser.Parser.parseTag(Parser.java:2054)
at java.desktop/javax.swing.text.html.parser.Parser.parseContent(Parser.java:2195)
at java.desktop/javax.swing.text.html.parser.Parser.parse(Parser.java:2372)
at java.desktop/javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java:135)
at java.desktop/javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.java:114)
at java.desktop/javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:264)
at java.desktop/javax.swing.JEditorPane.read(JEditorPane.java:621)
at java.desktop/javax.swing.JEditorPane.read(JEditorPane.java:591)
at EditorPaneCharset.<init>(EditorPaneCharset.java:31)
... 13 more
Java 8 does not throw ChangedCharSetException, Java 11 and later do.
Reported on behalf of rjolly: https://github.com/openjdk/jdk/pull/17567
https://mail.openjdk.org/pipermail/discuss/2024-March/006340.html
https://mail.openjdk.org/pipermail/client-libs-dev/2024-March/018311.html
To reproduce run the attached EditorPaneCharset.java:
java EditorPaneCharset.java
For Java 8, compile the file first:
javac EditorPaneCharset.java
java EditorPaneCharset
- backported by
-
JDK-8331057 JEditorPane.read throws ChangedCharSetException
- Resolved
-
JDK-8331469 JEditorPane.read throws ChangedCharSetException
- Resolved
-
JDK-8331473 JEditorPane.read throws ChangedCharSetException
- Resolved
-
JDK-8331475 JEditorPane.read throws ChangedCharSetException
- Resolved
-
JDK-8332838 JEditorPane.read throws ChangedCharSetException
- Resolved
-
JDK-8333417 JEditorPane.read throws ChangedCharSetException
- Resolved
-
JDK-8333630 JEditorPane.read throws ChangedCharSetException
- Resolved
-
JDK-8334373 JEditorPane.read throws ChangedCharSetException
- Resolved
- relates to
-
JDK-8328983 Support HTML5 encoding declaration with meta charset
- Open
-
JDK-8146319 JEditorPane function setPage leaves a file lock
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/f874da3c
-
Commit openjdk/jdk17u-dev/352d2580
-
Commit openjdk/jdk21u-dev/dc831aa7
-
Commit openjdk/jdk22u/849b720e
-
Commit openjdk/jdk/245514da
-
Review openjdk/jdk11u-dev/2780
-
Review openjdk/jdk17u-dev/2528
-
Review openjdk/jdk21u-dev/637
-
Review openjdk/jdk22u/148
-
Review openjdk/jdk/17567