FOP
  1. FOP
  2. FOP-1966

Small memory waste in TableContentPosition

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: layout/unqualified
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      51807

      Description

      cellParts in TableContentPosition can be filled with null elements, because it is initialized in TableStepper::getCombinedKnuthElementsForRowGroup() basing on columnCount, but filled with activeCells only.

      Line 202 in TableStepper
      List cellParts = new java.util.ArrayList(columnCount);
      need to be replaced with
      List cellParts = new java.util.ArrayList(activeCells.size());

        Activity

        Show
        Glenn Adams added a comment - thanks; fixed at http://svn.apache.org/viewvc?view=revision&revision=1309636
        Hide
        Sergey Vladimirov added a comment -

        Glenn,

        Patch is provided in first comment.

        Sergey

        Show
        Sergey Vladimirov added a comment - Glenn, Patch is provided in first comment. Sergey
        Hide
        Glenn Adams added a comment -

        feel free to propose a patch; in the mean time, closing due to lack of action

        Show
        Glenn Adams added a comment - feel free to propose a patch; in the mean time, closing due to lack of action

          People

          • Assignee:
            fop-dev
            Reporter:
            Sergey Vladimirov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development