eclipse-viatra / org.eclipse.viatra

Main components of the VIATRA framework
https://eclipse.dev/viatra
Eclipse Public License 2.0
0 stars 1 forks source link

No meaningful check for Java 8 support in query compiler #121

Open eclipse-viatra-bot opened 4 months ago

eclipse-viatra-bot commented 4 months ago

| --- | --- | | Bugzilla Link | 562879 | | Status | NEW | | Importance | P3 normal | | Reported | May 06, 2020 07:09 EDT | | Modified | May 06, 2020 07:23 EDT | | Version | 2.3.2 |

eclipse-viatra-bot commented 4 months ago

By Tamas Borbas on May 06, 2020 07:23

I had a Viatra query project with Java 7 and the compiler generates\ rawStreamAllValuesOf methods in the following way:

protected Stream<SomeType> rawStreamAllValuesOfsomeType(final Object[] parameters) {\
  return rawStreamAllValues(POSITION_SOMETYPE, parameters).map(SomeType.class::cast);\
}\

with this error for the SomeType.class::cast part:\ Method references are allowed only at source level 1.8 or above