[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cross-project-issues-dev] BREE change to Java 8 on some core plugins


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.