Hello,
Could you review the fix: bug: https://bugs.openjdk.java.net/browse/JDK-8058305 webrev: http://cr.openjdk.java.net/~alexsch/8058305/webrev.00According to the View.getNextVisualPositionFrom(...) method javadoc http://docs.oracle.com/javase/8/docs/api/javax/swing/text/View.html the BadLocationException should be thrown if the given position is not a valid position within the document
The issue is covered by JCK tests. Thanks, Alexandr.