java.lang.IndexOutOfBoundsException: levels.length = 3 start: 2 limit: 11

Stack Overflow | Jan Śmietana | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Inserting special characters into HTMLDocument causes IndexOutOfBoundsException in BidiUtils?

    Stack Overflow | 10 months ago | Jan Śmietana
    java.lang.IndexOutOfBoundsException: levels.length = 3 start: 2 limit: 11

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      levels.length = 3 start: 2 limit: 11

      at sun.font.BidiUtils.getLevels()
    2. Java RT
      HTMLDocument.insertAfterEnd
      1. sun.font.BidiUtils.getLevels(BidiUtils.java:58)
      2. javax.swing.text.AbstractDocument.calculateBidiLevels(AbstractDocument.java:1223)
      3. javax.swing.text.AbstractDocument.updateBidi(AbstractDocument.java:1049)
      4. javax.swing.text.AbstractDocument.insertUpdate(AbstractDocument.java:965)
      5. javax.swing.text.DefaultStyledDocument.insert(DefaultStyledDocument.java:215)
      6. javax.swing.text.html.HTMLDocument.insert(HTMLDocument.java:431)
      7. javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(HTMLDocument.java:3738)
      8. javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:2544)
      9. javax.swing.text.html.HTMLDocument.insertHTML(HTMLDocument.java:1567)
      10. javax.swing.text.html.HTMLDocument.insertAfterEnd(HTMLDocument.java:1392)
      10 frames