Bug 531900 - [10] Java-SE-10 appears before Java-SE-9
Summary: [10] Java-SE-10 appears before Java-SE-9
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.7.1a   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J18.3   Edit
Assignee: Sarika Sinha CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-02 00:56 EST by Jay Arthanareeswaran CLA
Modified: 2018-03-26 06:40 EDT (History)
5 users (show)

See Also:


Attachments
Sorting by Compliance (6.77 KB, image/png)
2018-03-15 00:54 EDT, Sarika Sinha CLA
no flags Details
New EE Sorting (5.93 KB, image/png)
2018-03-16 07:37 EDT, Sarika Sinha CLA
no flags Details
I see J2SE-1.3-NO-SOUND instead of just J2SE-1.3 (33.65 KB, image/jpeg)
2018-03-21 06:19 EDT, Vikas Chandra CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Arthanareeswaran CLA 2018-03-02 00:56:50 EST
In the Execution environment dialog and the EE drop down in Edit Library dialog the Java-SE-10 appears before Java-SE-9 in the list. Looks like the alphabatical sorting needs an exception here.
Comment 1 Noopur Gupta CLA 2018-03-07 06:59:54 EST
I think this is handled in JDT Debug.
Comment 2 Sarika Sinha CLA 2018-03-07 14:18:57 EST
It will definitely be good to have JavaSE-10 after Java SE-9.

But ---
Even JRE 1.1 comes after J2SE 1.5
Comment 3 Sarika Sinha CLA 2018-03-15 00:54:07 EDT
Created attachment 273133 [details]
Sorting by Compliance

Sorting by compliance changes the existing order for CDC and OSGi EEs.
Comment 4 Dani Megert CLA 2018-03-15 05:06:21 EDT
Same applies to
compliance
target level
source level
Comment 5 Dani Megert CLA 2018-03-15 05:09:02 EDT
(In reply to Dani Megert from comment #4)
> Same applies to
> compliance
> target level
> source level

I mean there also 10 needs to be after 9 if not already done so.
Comment 6 Eclipse Genie CLA 2018-03-16 07:26:52 EDT
New Gerrit change created: https://git.eclipse.org/r/119559
Comment 7 Eclipse Genie CLA 2018-03-16 07:29:18 EDT
New Gerrit change created: https://git.eclipse.org/r/119561
Comment 8 Eclipse Genie CLA 2018-03-16 07:33:58 EDT
New Gerrit change created: https://git.eclipse.org/r/119563
Comment 9 Sarika Sinha CLA 2018-03-16 07:37:02 EDT
(In reply to Eclipse Genie from comment #8)
> New Gerrit change created: https://git.eclipse.org/r/119563

@Vikas ,
This is for pde Eclipse Application launch sorting.
We will need BETA_JAVA_18_3 branch for pde.ui
I have currently created the patch on master.
Comment 10 Sarika Sinha CLA 2018-03-16 07:37:41 EDT
Created attachment 273157 [details]
New EE Sorting

New EE Sorting
Comment 11 Noopur Gupta CLA 2018-03-16 07:59:29 EDT
(In reply to Sarika Sinha from comment #10)
> Created attachment 273157 [details]
> New EE Sorting
> 
> New EE Sorting
Just a suggestion: it can be sorted in the reverse order if everyone agrees. It will be applicable to the drop-down combos also. 

That will bring the frequently used (latest) EEs (1.8/9/10) to the top and will avoid the distraction from the old EEs (CDC/OSGi/J2SE).
Comment 12 Sasikanth Bharadwaj CLA 2018-03-16 08:08:52 EDT
(In reply to comment #11)
> (In reply to Sarika Sinha from comment #10)
> > Created attachment 273157 [details]
> > New EE Sorting
> >
> > New EE Sorting
> Just a suggestion: it can be sorted in the reverse order if everyone agrees. It
> will be applicable to the drop-down combos also.
> 
> That will bring the frequently used (latest) EEs (1.8/9/10) to the top and will
> avoid the distraction from the old EEs (CDC/OSGi/J2SE).

+1
Comment 13 Sarika Sinha CLA 2018-03-16 08:28:26 EDT
(In reply to Noopur Gupta from comment #11)
> (In reply to Sarika Sinha from comment #10)
> > Created attachment 273157 [details]
> > New EE Sorting
> > 
> > New EE Sorting
> Just a suggestion: it can be sorted in the reverse order if everyone agrees.
> It will be applicable to the drop-down combos also. 
> 
> That will bring the frequently used (latest) EEs (1.8/9/10) to the top and
> will avoid the distraction from the old EEs (CDC/OSGi/J2SE).


As stated yesterday I also prefer the reverse order.

@Dani, Please suggest as yesterday in the meeting you clarified that Java 10 should always come after Java 9.
Comment 14 Dani Megert CLA 2018-03-16 09:32:13 EDT
(In reply to Sarika Sinha from comment #13)
> (In reply to Noopur Gupta from comment #11)
> > (In reply to Sarika Sinha from comment #10)
> > > Created attachment 273157 [details]
> > > New EE Sorting
> > > 
> > > New EE Sorting
> > Just a suggestion: it can be sorted in the reverse order if everyone agrees.
> > It will be applicable to the drop-down combos also. 
> > 
> > That will bring the frequently used (latest) EEs (1.8/9/10) to the top and
> > will avoid the distraction from the old EEs (CDC/OSGi/J2SE).
> 
> 
> As stated yesterday I also prefer the reverse order.
> 
> @Dani, Please suggest as yesterday in the meeting you clarified that Java 10
> should always come after Java 9.

It is too late to change that long known order at this point. And we have to make sure that we fix it at all places, not just for EEs.

Please file a new bug to look at this after 4.8.
Comment 15 Sarika Sinha CLA 2018-03-16 11:08:33 EDT
The patches attached change the sorting in 
1) Windows preference page for EE
2) List of EE in New Java Project Wizard
3) List of EE in Java application, Eclipse Application
Comment 16 Eclipse Genie CLA 2018-03-19 04:33:28 EDT
Gerrit change https://git.eclipse.org/r/119559 was merged to [BETA_JAVA_18_3].
Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.debug.git/commit/?id=dd7ddc4b28e8f191657973edb30c43a3b9cd7785
Comment 17 Eclipse Genie CLA 2018-03-19 04:42:42 EDT
Gerrit change https://git.eclipse.org/r/119561 was merged to [BETA_JAVA_18_3].
Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=5299fe582a1bd9377a138bffa3ece53b2538aa57
Comment 18 Vikas Chandra CLA 2018-03-19 06:11:19 EDT
>>This is for pde Eclipse Application launch sorting.

I will test this and put the fix directly post merge. If in case merge happens to take time ( later than this wednesday/thursday), I will create a PDE 18.3 stream and put this in.
Comment 19 Dani Megert CLA 2018-03-19 13:26:22 EDT
(In reply to Vikas Chandra from comment #18)
> I will test this and put the fix directly post merge. If in case merge
> happens to take time ( later than this wednesday/thursday), I will create a
> PDE 18.3 stream and put this in.

Sorry, this is gibberish.
Comment 20 Vikas Chandra CLA 2018-03-20 01:00:52 EDT
>>Sorry, this is gibberish.

Which part of this is gibberish? This is an action item for comment 9. If you have an alternate and better action item, please suggest.
Comment 21 Eclipse Genie CLA 2018-03-20 02:45:53 EDT
New Gerrit change created: https://git.eclipse.org/r/119745
Comment 22 Eclipse Genie CLA 2018-03-20 02:48:08 EDT
Gerrit change https://git.eclipse.org/r/119745 was merged to [BETA_JAVA_18_3].
Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=c1f35b324d76b6cb48523cc2efcc4fc68024819b
Comment 23 Vikas Chandra CLA 2018-03-20 08:28:07 EDT
Some more testing revealed that order in File->New -> Plugin Project, on the content page, we have the old order.

Sarika, can you please take it up?
Comment 24 Dani Megert CLA 2018-03-20 09:30:45 EDT
(In reply to Vikas Chandra from comment #20)
> >>Sorry, this is gibberish.
> 
> Which part of this is gibberish? 

All. I just don't understand what you plan to do or tried to say. For example, what is a "PDE 18.3 stream"?
Comment 25 Vikas Chandra CLA 2018-03-20 09:57:41 EDT
>>"PDE 18.3 stream"

This means a "code branch in PDE that will be contain changes for Java18.3/Java10 changes in PDE". 

Not the best of phrases but it conveyed the message pretty well.
Comment 26 Vikas Chandra CLA 2018-03-20 10:03:49 EDT
>>I just don't understand what you plan to do or tried to say


The update here right now is that I created a PDE  source code branch which is named as "BETA_JAVA_18_3". The code of comment 9 is committed in "BETA_JAVA_18_3" branch via comment 22.

I have found an issue ( reported via comment comment 23). 

Hope things are clear now.
Comment 27 Dani Megert CLA 2018-03-20 10:20:04 EDT
(In reply to Vikas Chandra from comment #26)
> >>I just don't understand what you plan to do or tried to say
> 
> 
> The update here right now is that I created a PDE  source code branch which
> is named as "BETA_JAVA_18_3". The code of comment 9 is committed in
> "BETA_JAVA_18_3" branch via comment 22.
> 
> I have found an issue ( reported via comment comment 23). 
> 
> Hope things are clear now.

Better now :-)
Comment 28 Eclipse Genie CLA 2018-03-21 02:09:31 EDT
New Gerrit change created: https://git.eclipse.org/r/119840
Comment 29 Sarika Sinha CLA 2018-03-21 02:10:40 EDT
(In reply to Eclipse Genie from comment #28)
> New Gerrit change created: https://git.eclipse.org/r/119840

@Vikas, this handles the scenario mentioned in  comment 23. Please review.
Comment 30 Eclipse Genie CLA 2018-03-21 05:43:53 EDT
New Gerrit change created: https://git.eclipse.org/r/119852
Comment 31 Eclipse Genie CLA 2018-03-21 05:45:07 EDT
Gerrit change https://git.eclipse.org/r/119852 was merged to [R4_7_maintenance].
Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=94c46b2ea97d8cde4626556d44b7791c9dc3f2df
Comment 32 Eclipse Genie CLA 2018-03-21 05:49:51 EDT
New Gerrit change created: https://git.eclipse.org/r/119855
Comment 33 Vikas Chandra CLA 2018-03-21 06:19:06 EDT
Created attachment 273237 [details]
I see J2SE-1.3-NO-SOUND instead of just J2SE-1.3

Is this expected?
Comment 34 Sarika Sinha CLA 2018-03-21 12:09:03 EDT
(In reply to Vikas Chandra from comment #33)
> Created attachment 273237 [details]
> I see J2SE-1.3-NO-SOUND instead of just J2SE-1.3
> 
> Is this expected?

I don't get it. Is this coming from your test plugn?
Comment 35 Eclipse Genie CLA 2018-03-22 02:50:11 EDT
Gerrit change https://git.eclipse.org/r/119855 was merged to [R4_7_maintenance].
Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=d848a1914ef81dd9a82ec92967bf5798742ca60c
Comment 36 Vikas Chandra CLA 2018-03-22 04:15:34 EDT
>>I don't get it. Is this coming from your test plugn?

I will check it and update my findings on the bug. Meanwhile, I've committed your last change so that it can be picked up by the 4.7.3a build(RC1 candidate).
Comment 37 Eclipse Genie CLA 2018-03-22 05:54:07 EDT
New Gerrit change created: https://git.eclipse.org/r/119943
Comment 39 Sarika Sinha CLA 2018-03-22 10:15:27 EDT
Verified with
Eclipse SDK

Version: Photon (4.8)
Build id: I20180322-0645

@Vikas, I don't see that extra entry.
Comment 40 Sarika Sinha CLA 2018-03-26 06:40:28 EDT
Verified using
Eclipse SDK

Version: Oxygen.3a (4.7.3a)
Build id: M20180323-1030

Created Bug 532877 for reconsidering sorting order.