Pivot
  1. Pivot
  2. PIVOT-772

Exceptions thrown when calling getCharacterBounds of TextArea when incomplete lines exist

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.1
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      Windows XP SP3, JRE 1.6_25 or JRE 1.7 (beta)

      Description

      If partial lines are appended to a TextArea and then "getCharacterBounds" followed by "scrollAreaToVisible" is called, Pivot throws java.lang.IndexOutOfBoundsException from TextAreaSkinParagraphView.getCharacterBounds:
      java.lang.IndexOutOfBoundsException: ix = 38
      at sun.font.StandardGlyphVector.getGlyphLogicalBounds(Unknown Source)
      at org.apache.pivot.wtk.skin.TextAreaSkinParagraphView.getCharacterBounds(TextAreaSkinParagraphView.java:393)
      at org.apache.pivot.wtk.skin.TextAreaSkin.getCharacterBounds(TextAreaSkin.java:442)
      at org.apache.pivot.wtk.TextArea.getCharacterBounds(TextArea.java:1243)

      1. scroll2.log
        13 kB
        Roger Whitcomb
      2. Scroll2.java
        12 kB
        Roger Whitcomb
      3. scroll.log
        4 kB
        Roger Whitcomb
      4. Scroll.java
        10 kB
        Roger Whitcomb
      5. scroll.bxml
        1 kB
        Roger Whitcomb

        Activity

        Sandro Martini made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Sandro Martini made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Noel Grandin made changes -
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Roger Whitcomb made changes -
        Attachment Scroll2.java [ 12487862 ]
        Roger Whitcomb made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Noel Grandin made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Roger Whitcomb made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Noel Grandin made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Noel Grandin [ grandinj ]
        Resolution Fixed [ 1 ]
        Roger Whitcomb made changes -
        Attachment scroll.log [ 12487023 ]
        Attachment scroll2.log [ 12487024 ]
        Roger Whitcomb made changes -
        Summary Exceptions thrown when calling scrollAreaToVisible of TextArea when incomplete lines exist Exceptions thrown when calling getCharacterBounds of TextArea when incomplete lines exist
        Roger Whitcomb made changes -
        Field Original Value New Value
        Attachment Scroll.java [ 12486949 ]
        Attachment scroll.bxml [ 12486950 ]
        Roger Whitcomb created issue -

          People

          • Assignee:
            Noel Grandin
            Reporter:
            Roger Whitcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 48h
              48h
              Remaining:
              Remaining Estimate - 48h
              48h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development