[jboss-jira] [JBoss JIRA] (DROOLS-5388) Eclipse Rule Editor does not recognize Java source level
Stefan Winkler (Jira)
issues at jboss.org
Fri May 29 05:01:16 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Winkler updated DROOLS-5388:
-----------------------------------
Steps to Reproduce:
# Using the Eclipse Installer, install Eclipse for Java and DSL developers 2020-03 or 2020-06.
# Then install the org.drools.eclipse plugin from https://download.jboss.org/drools/release/7.36.0.Final/org.drools.updatesite/
# Create a new Drools Project (File > New > Project > Drools Project) and select the option to generate the project using sample files.
# Open drools-test/src/main/resources/com/sample/rules/Sample.drl in the Rule Editor.
# To the {{then}} block add the following line of code and save the file:
{{Stream.of(m).forEach(System.out::println);}}
*Expected:* no error marker appears
*Observed:* error marker appears saying the lambdas can only be used in source level 1.8+
was:
# Using the Eclipse Installer, install Eclipse for Java and DSL developers 2020-03 or 2020-06.
# Then install the org.drools.eclipse plugin from https://download.jboss.org/drools/release/7.36.0.Final/org.drools.updatesite/
# Create a new Drools Project (File > New > Project > Drools Project) and select the option to generate the project using sample files.
# Open drools-test/src/main/resources/com/sample/rules/Sample.drl in the Rule Editor.
# To the `then` block add the following line of code and save the file:
`Stream.of(m).forEach(System.out::println);`
*Expected:* no error marker appears
*Observed:* error marker appears saying the lambdas can only be used in source level 1.8+
> Eclipse Rule Editor does not recognize Java source level
> --------------------------------------------------------
>
> Key: DROOLS-5388
> URL: https://issues.redhat.com/browse/DROOLS-5388
> Project: Drools
> Issue Type: Bug
> Components: eclipse plugin
> Affects Versions: 7.36.0.Final
> Reporter: Stefan Winkler
> Assignee: Kris Verlaenen
> Priority: Major
>
> See this stackoverflow:
> https://stackoverflow.com/q/62062516/2239897
> In an Eclipse 2020-03 or 2020-06 installation, when the org.drools.eclipse 7.36.0.Final plugin is installed, a .drl file containing Java 1.5+ source code shows error markers about unsupported Java syntax.
> Plugin org.drools.eclipse version 7.21.0.Final with an otherwise identical Eclipse installation works fine. There seems to be a regression introduced somewhere between 7.21.0 and 7.36.0.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list