Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-27 Thread duke
On Sat, 22 Jun 2024 10:55:28 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-24 Thread Markus Mack
On Sat, 22 Jun 2024 10:55:28 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-24 Thread Andy Goryachev
On Sat, 22 Jun 2024 10:55:28 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-24 Thread Andy Goryachev
On Sat, 22 Jun 2024 10:58:53 GMT, Markus Mack wrote: > I can reproduce this, looks unrelated to the issue this PR is trying to fix. Created https://bugs.openjdk.org/browse/JDK-8334873 - PR Comment: https://git.openjdk.org/jfx/pull/1476#issuecomment-2186856495

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-24 Thread Andy Goryachev
On Sat, 22 Jun 2024 10:55:28 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v4]

2024-06-24 Thread Andy Goryachev
On Sat, 22 Jun 2024 10:52:42 GMT, Markus Mack wrote: >> modules/javafx.controls/src/main/java/javafx/scene/chart/BarChart.java line >> 227: >> >>> 225: var uniqueCategories = new HashSet(); >>> 226: for (var entry : seriesCategoryMap.entrySet()) { >>> 227:

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-22 Thread Michael Strauß
On Sat, 22 Jun 2024 10:55:28 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-22 Thread Markus Mack
On Sat, 22 Jun 2024 10:55:28 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v5]

2024-06-22 Thread Markus Mack
> This PR provides the test case given in the JBS issue, and a simple fix for > the index calculation when inserting data after previous data with duplicate > categories. > > Also, I've added a comment to `BarChart`s javadoc, clarifying the behavior > that was apparently assumed (but broken) pr

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v4]

2024-06-22 Thread Markus Mack
On Fri, 21 Jun 2024 22:07:22 GMT, Andy Goryachev wrote: >> Markus Mack has updated the pull request incrementally with one additional >> commit since the last revision: >> >> testAddingDataAtIndex & fix > > modules/javafx.controls/src/main/java/javafx/scene/chart/BarChart.java line > 227: >

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v4]

2024-06-21 Thread Andy Goryachev
On Fri, 21 Jun 2024 22:10:42 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v4]

2024-06-21 Thread Andy Goryachev
On Fri, 21 Jun 2024 22:07:22 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v3]

2024-06-21 Thread Markus Mack
On Fri, 21 Jun 2024 15:22:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v4]

2024-06-21 Thread Markus Mack
> This PR provides the test case given in the JBS issue, and a simple fix for > the index calculation when inserting data after previous data with duplicate > categories. > > Also, I've added a comment to `BarChart`s javadoc, clarifying the behavior > that was apparently assumed (but broken) pr

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v3]

2024-06-21 Thread Michael Strauß
On Fri, 21 Jun 2024 15:22:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v3]

2024-06-21 Thread Andy Goryachev
On Fri, 21 Jun 2024 15:22:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-21 Thread Markus Mack
On Thu, 20 Jun 2024 17:44:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v3]

2024-06-21 Thread Markus Mack
> This PR provides the test case given in the JBS issue, and a simple fix for > the index calculation when inserting data after previous data with duplicate > categories. > > Also, I've added a comment to `BarChart`s javadoc, clarifying the behavior > that was apparently assumed (but broken) pr

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Andy Goryachev
On Thu, 20 Jun 2024 19:11:48 GMT, Markus Mack wrote: > adding empty series ah, right! > the tick marks on the axis are in incorrect this might be [JDK-8314754](https://bugs.openjdk.org/browse/JDK-8314754) - PR Comment: https://git.openjdk.org/jfx/pull/1476#issuecomment-21813763

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Markus Mack
On Thu, 20 Jun 2024 17:44:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Andy Goryachev
On Thu, 20 Jun 2024 17:44:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Andy Goryachev
On Thu, 20 Jun 2024 17:44:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Markus Mack
On Thu, 20 Jun 2024 17:44:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Markus Mack
On Thu, 20 Jun 2024 17:59:13 GMT, Andy Goryachev wrote: >> You'll need to add an additional point after adding the one with duplicate >> categories to see the exception in the console. Using the "Add Point" button >> in the monkey tester after using the context menu entry should reproduce the

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Andy Goryachev
On Thu, 20 Jun 2024 17:44:41 GMT, Markus Mack wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarifying

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Andy Goryachev
On Thu, 20 Jun 2024 17:50:20 GMT, Markus Mack wrote: >> I've added a popup menu on the BarChart page in the Monkey Tester to test >> the case ... >> https://github.com/andy-goryachev-oracle/MonkeyTest > > You'll need to add an additional point after adding the one with duplicate > categories to

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Markus Mack
On Thu, 20 Jun 2024 16:52:49 GMT, Andy Goryachev wrote: >> However, I don't see the issue if I just add a duplicate data point after >> the chart is rendered (the code jumps to line 218 (edit: 216, sorry) in the >> master branch). >> >> This makes me think that perhaps the fix should include f

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart [v2]

2024-06-20 Thread Markus Mack
> This PR provides the test case given in the JBS issue, and a simple fix for > the index calculation when inserting data after previous data with duplicate > categories. > > Also, I've added a comment to `BarChart`s javadoc, clarifying the behavior > that was apparently assumed (but broken) pr

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart

2024-06-20 Thread Andy Goryachev
On Thu, 20 Jun 2024 16:34:23 GMT, Andy Goryachev wrote: >> This PR provides the test case given in the JBS issue, and a simple fix for >> the index calculation when inserting data after previous data with duplicate >> categories. >> >> Also, I've added a comment to `BarChart`s javadoc, clarify

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart

2024-06-20 Thread Andy Goryachev
On Wed, 19 Jun 2024 10:21:52 GMT, Markus Mack wrote: > This PR provides the test case given in the JBS issue, and a simple fix for > the index calculation when inserting data after previous data with duplicate > categories. > > Also, I've added a comment to `BarChart`s javadoc, clarifying the

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart

2024-06-20 Thread Andy Goryachev
On Thu, 20 Jun 2024 16:50:23 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/javafx/scene/chart/BarChart.java line >> 215: >> >>> 213: if (!categoryAxis.getCategories().contains(category)) { >>> 214: // find category index in case data contains duplicate

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart

2024-06-20 Thread Markus Mack
On Wed, 19 Jun 2024 10:21:52 GMT, Markus Mack wrote: > This PR provides the test case given in the JBS issue, and a simple fix for > the index calculation when inserting data after previous data with duplicate > categories. > > Also, I've added a comment to `BarChart`s javadoc, clarifying the

Re: RFR: 8088923: IOOBE when adding duplicate categories to the BarChart

2024-06-20 Thread Andy Goryachev
On Wed, 19 Jun 2024 10:21:52 GMT, Markus Mack wrote: > This PR provides the test case given in the JBS issue, and a simple fix for > the index calculation when inserting data after previous data with duplicate > categories. > > Also, I've added a comment to `BarChart`s javadoc, clarifying the

RFR: 8088923: IOOBE when adding duplicate categories to the BarChart

2024-06-19 Thread Markus Mack
This PR provides the test case given in the JBS issue, and a simple fix for the index calculation when inserting data after previous data with duplicate categories. Also, I've added a comment to `BarChart`s javadoc, clarifying the behavior that was apparently assumed (but broken) previously. T