Bug 395213 - Move requirement for JFace to Java 1.5
Summary: Move requirement for JFace to Java 1.5
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2.1   Edit
Hardware: All All
: P3 enhancement with 2 votes (vote)
Target Milestone: 4.4 M1   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 402445 482137 483839 234331 402439 402464 411383
  Show dependency tree
 
Reported: 2012-11-27 15:46 EST by Lars Vogel CLA
Modified: 2015-12-07 14:21 EST (History)
13 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2012-11-27 15:46:05 EST
Platform has moved to Java 1.5. Can we move JFace also to 1.5? That would allow for example to extend JFace Viewer with Generics.
Comment 1 Dani Megert CLA 2012-11-28 07:06:30 EST
(In reply to comment #0)
> Platform has moved to Java 1.5. Can we move JFace also to 1.5? 

Just to clarify here: none of the 1.5 platform stuff is required by JFace, so that they moved up is not a good reason by itself.
Comment 2 Paul Webster CLA 2012-11-28 08:51:52 EST
We would need a more concrete usecase of where you'd be applying 1.5 language constructs.

PW
Comment 3 John Arthorne CLA 2012-11-28 09:07:39 EST
I can think of plenty of examples where this would be very useful: IStructuredSelection, content and label providers, the viewer classes, etc. Lars are you interested in working in this area or do you know someone who wants to work on this?
Comment 4 Lars Vogel CLA 2013-02-21 21:43:29 EST
I would love to work on this. I plan to suggest this as GSoC project and if possible mentor it. 

What would be a good setup for working on this? Github?
Comment 5 Dani Megert CLA 2013-02-22 05:59:33 EST
(In reply to comment #4)
> I would love to work on this. I plan to suggest this as GSoC project and if
> possible mentor it. 
> 
> What would be a good setup for working on this? Github?

I'd prefer Gerrit over GitHub.
Comment 6 Lars Vogel CLA 2013-02-22 06:10:04 EST
@Dani: platform is already using Gerrit?
Comment 7 Paul Webster CLA 2013-02-22 06:11:50 EST
No, but we can request to set that up if we use the same pattern as JDT/Core or Platform/UA

PW
Comment 8 Lars Vogel CLA 2013-02-22 10:08:05 EST
Btw, we can easily do both, work against a Github repo and push to Gerrit.
Comment 9 Lars Vogel CLA 2013-03-05 10:51:10 EST
I opened Bug 402445 for the generic support in JFace Viewers.
Comment 10 Hendrik Still CLA 2013-06-11 09:12:43 EDT
As part of my Google Summer of Code Project (mentored by Lars Vogel) I'm trying to to bring generics support to the JFace Viewers. 

As initial action I've commited a patch to the gerrit system with adjustments in the MANIFEST.MF and .classpath files.
https://git.eclipse.org/r/#/c/13664/

So if your interested, please review the changes.
Comment 11 David Williams CLA 2013-06-20 22:32:11 EDT
This was applied this afternoon, apparently, though there's no note to that effect here, and caused bug 411321. 

Be sure to test local builds with -Pbree-libs.
Comment 12 David Williams CLA 2013-06-20 23:25:17 EDT
(In reply to comment #11)
> This was applied this afternoon, apparently, though there's no note to that
> effect here, and caused bug 411321. 
> 
> Be sure to test local builds with -Pbree-libs.

Well, I take this back ... sort of (its always a good idea :) ... but the actual bug 411321 occurs while running pom-version-updater.sh ... which is not part of doing a "local build".
Comment 13 Dani Megert CLA 2013-06-21 03:48:28 EDT
As David noted, the pom.xml is not correct. There are other issues with the merged change:
- the compliance was not updated (still 1.4)
- the bundle version was not updated for Luna

Fixed with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=9ad2c79bfaa360f1fe848cb905886c72551dd67c
Comment 14 Dani Megert CLA 2013-06-21 03:52:08 EDT
The next step is now to fix all the new compile warnings regarding type safety and raw types (around 1000). Not sure whether bug 402445 is meant to fix those.
Comment 15 Markus Keller CLA 2013-06-21 09:46:53 EDT
And when changing the compiler compliance, you always have to make a pass over the Errors/Warnings page to make sure the settings make sense for the new language level. Fixed with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=60778334e8a8c485df7d0c7cd301a6ff827bd9d9
Comment 16 Dani Megert CLA 2013-06-21 09:49:02 EDT
(In reply to comment #15)
> And when changing the compiler compliance, you always have to make a pass
> over the Errors/Warnings page 

Ideally, this would happen when changing the compliance.
Comment 17 Markus Keller CLA 2013-06-21 10:00:01 EDT
John, what's your plan with this?

The JFace project can't stay with hundreds of compile warnings, and I don't think it makes sense to let an external contributor generify the project. Reviewing all the necessary changes takes a committer longer than doing most of the fixes himself. See http://wiki.eclipse.org/Generify_A_Java_Project .
Comment 18 Lars Vogel CLA 2013-06-21 10:04:19 EDT
Should we open a new bug for the warnings? I talked to Hendrik (GSoC project) and the plan was to provide Gerrit patches for generifing the project. Please let us know if that is not desired.
Comment 19 John Arthorne CLA 2013-06-21 10:23:39 EDT
(In reply to comment #17)
> John, what's your plan with this?
> 
> The JFace project can't stay with hundreds of compile warnings, and I don't
> think it makes sense to let an external contributor generify the project.
> Reviewing all the necessary changes takes a committer longer than doing most
> of the fixes himself. See http://wiki.eclipse.org/Generify_A_Java_Project .

This is an accepted GSOC project that Hendrick will be working on over the summer. This bug was just the first step of enabling use of generics but more work is coming. Some pointers for more details:

http://blog.vogella.com/2013/06/17/google-summer-of-code-at-eclipse-2/
http://www.google-melange.com/gsoc/proposal/review/google/gsoc2013/hendrik_still/1
https://wiki.eclipse.org/Eclipse_Platform:_Implementing_generic_in_JFace_viewers

And yes, reviewing contributed changes is often more work than just doing the work yourself, but it is an investment in helping someone get started working in open source and potentially growing new long term contributors.

For the compile warnings, I don't mind if we leave the warnings on while Hendrick, Lars, and others work to reduce them over the next couple of months. If it is preferred we could set the compile warnings in the official build to ignore them, but leave them enabled in the project settings. That way the build looks clean but people working on the code are reminded that they need fixing.
Comment 20 Dani Megert CLA 2013-06-21 10:27:32 EDT
This bug is fixed. Further discussions (e.g. ignore warnings) should happen in a new bug.
Comment 21 Hendrik Still CLA 2013-06-21 10:48:59 EDT
Sorry for the inconvenience my first commit have caused. I opened a new bug for further discussions. 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=411383