Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Fw: [cross-project-issues-dev] BREE change to Java 8 on some coreplugins

Folks,

The only WTP plugin that I found that references org.eclipse.equinox.common is org.eclipse.jpt.jpa.db.ui, and its BREE is already at Java 8. However, there are a lot of other references to org.eclipse.equinox.* bundles, so other plugins may need to update their BREE (due to indirect references). If something breaks during the build, WTP Releng will work to get it fixed... but these issues may not show up until runtime. As such, I wanted the WTP community to be aware (and wary) of this change.

FWIW,

- Carl Anderson
WTP Releng Project lead
----- Forwarded by Carl Anderson/Raleigh/IBM on 01/11/2017 03:16 PM -----

From: Mikaƫl Barbero <mikael@xxxxxxxxxxx>
To: Cross project issues <cross-project-issues-dev@xxxxxxxxxxx>
Date: 01/11/2017 09:14 AM
Subject: [cross-project-issues-dev] BREE change to Java 8 on some core plugins
Sent by: cross-project-issues-dev-bounces@xxxxxxxxxxx





Hi,

With https://bugs.eclipse.org/bugs/show_bug.cgi?id=509234, org.eclipse.core.runtime.ListenerList now overrides the default method Iterable.spliterator() and provides stream() and parallelStream() methods. Thus it exposes Java 8 types.

If you use the ListenerList class and compile against org.eclipse.equinox.common within the [3.9,4.0) range, this change may force you to update your BREE to Java 8 as well (like we had to do for bundles org.eclipse.equinox.preferences, org.eclipse.core.jobs and org.eclipse.core runtime).

Changing BREE is not required if you use ListenerList and still build against older compatible version of org.eclipse.equinox.common (i.e. within [3.0, 3.9) range). As many of us are compiling against latest versions of bundles, think of it if you see compile errors like the following "The type java.util.stream.Stream cannot be resolved. It is indirectly referenced from required .class files".

Note that any previously compiled bundle depending on org.eclipse.equinox.common within the [3.0,4.0) range will continue to work as before.

Cheers,
Mikael_______________________________________________
cross-project-issues-dev mailing list
cross-project-issues-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev

Back to the top