Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8301445

Duplicate child added exception in charts when remove & add a series

XMLWordPrintable

    • generic
    • generic

      This issue came up during the analysis and fix of JDK-8088998

      When a series is removed and added back to the chart, IllegalArgumentException: "duplicate children added" exception is observed. The issue can be seen when animation is enabled.
      The issue is observed in following charts:
      -AreaChart
      -BubbleChart
      -ScatterChart
      -StackedAreaChart
      -StackedBarChart

      The same issue in LineChart is reported in JDK-8088998. The fix for this issue is not fixing the issue in above charts as seriesBeingRemovedIsAdded() method is not overloaded in these charts.

      Sample code to reproduce the issue with BubbleChart is attached.

            kpk Karthik P K
            kpk Karthik P K
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: