diff -r dbbe6470fd1a -r 1ecc464c69d2 jdk/src/share/classes/javax/swing/JEditorPane.java --- a/jdk/src/share/classes/javax/swing/JEditorPane.java Mon Jun 02 15:25:43 2014 +0400 +++ b/jdk/src/share/classes/javax/swing/JEditorPane.java Tue Jun 03 11:18:03 2014 -0400 @@ -965,7 +965,7 @@ // The type could have optional info is part of it, // for example some charset info. We need to strip that // of and save it. - int parm = type.indexOf(";"); + int parm = type.indexOf(';'); if (parm > -1) { // Save the paramList. String paramList = type.substring(parm);