Community
Participate
Working Groups
Build Identifier: The broken quicksort algorithm which got removed in this bug: (https://bugs.eclipse.org/bugs/show_bug.cgi?id=158258) is used in jdt.internal.compiler.util.Util in the method reverseQuickSort. I will attach a patch where the algorithm is fixed. Reproducible: Always
Created attachment 182179 [details] The patch
(In reply to comment #1) > Created an attachment (id=182179) [details] [diff] > The patch Thanks for the patch. Can you please provide a copyright statement (or your name and email id) to be added in your patch (or add it yourself and submit a new patch). It should be of the form Name <email id> - Contribution for bug 3292227. Also, please use mid = left + ((right-left)/2) instead of the right shift operator. This is what has been used elsewhere in JDT/Core. I will also fix the quicksort in org.eclipse.jdt.core.tests.model.CompletionTestsRequestor.quickSort(String[], int, int) and org.eclipse.jdt.core.tests.model.CompletionTestsRequestor2.quickSort(CompletionProposal[], int, int)
(In reply to comment #2) > (In reply to comment #1) > > Created an attachment (id=182179) [details] [diff] [details] [diff] > > The patch > > Thanks for the patch. Can you please provide a copyright statement (or your > name and email id) to be added in your patch (or add it yourself and submit a > new patch). > > It should be of the form > Name <email id> - Contribution for bug 3292227. > > Also, please use > > mid = left + ((right-left)/2) > > instead of the right shift operator. This is what has been used elsewhere in > JDT/Core. > > I will also fix the quicksort in > org.eclipse.jdt.core.tests.model.CompletionTestsRequestor.quickSort(String[], > int, int) and > org.eclipse.jdt.core.tests.model.CompletionTestsRequestor2.quickSort(CompletionProposal[], > int, int) Hi, please add atleast your copyright information as soon as possible so that the patch can be released. Thanks!
Olivier, we don't have the copyright info for this yet. Should the patch be released without it?
(In reply to comment #4) > Olivier, we don't have the copyright info for this yet. Should the patch be > released without it? Ayushman, please update the copyright with the following information. * daolaf@gmail.com - Contribution for bug 3292227. And then release it. Set the iplog tag on the attached patch. Thanks.
Created attachment 185767 [details] patch to commit
Released in HEAD for 3.7M5
(In reply to comment #5) > Set the iplog tag on the attached patch. This has not been done. Reopening to make sure this doesn't get forgotten.
(In reply to comment #8) > (In reply to comment #5) > > Set the iplog tag on the attached patch. > > This has not been done. Reopening to make sure this doesn't get forgotten. Sorry for missing this out. Done now.
Verified for 3.7 M5 via code inspection.