Skip to content

Commit

Permalink
Bug 581932 ArrayIndexOutOfBoundsException in ArrayIntCompressed
Browse files Browse the repository at this point in the history
Check Arrays.parallelSort()

Change-Id: Idda2f4288d4d57dfea79e43b7c1a7a09e6609903
  • Loading branch information
ajohnson1 committed Jun 12, 2023
1 parent e592bfd commit d7d3105
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ else if (identifiers == null)
collect = null;
}
Arrays.parallelSort(identifiers, 0, size);
Arrays.sort(identifiers, 0, size); // Debug for bug 581932
}

public int size()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2018 SAP AG and IBM Corporation.
* Copyright (c) 2008, 2023 SAP AG and IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -218,6 +218,7 @@ public int firstElement()
public void sort()
{
Arrays.parallelSort(elements, 0, size);
Arrays.sort(elements, 0, size); // Debug for bug 581932
}

// //////////////////////////////////////////////////////////////
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2008, 2018 SAP AG and IBM Corporation.
* Copyright (c) 2008, 2023 SAP AG and IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -216,6 +216,7 @@ public long firstElement()
public void sort()
{
Arrays.parallelSort(elements, 0, size);
Arrays.sort(elements, 0, size); // Debug for bug 581932
}

// //////////////////////////////////////////////////////////////
Expand Down

0 comments on commit d7d3105

Please sign in to comment.