[JBoss JIRA] (DROOLS-5388) Eclipse Rule Editor does not recognize Java source level
by Stefan Winkler (Jira)
[ https://issues.redhat.com/browse/DROOLS-5388?page=com.atlassian.jira.plug... ]
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.updates...
# 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.updates...
# 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)
5 years, 11 months
[JBoss JIRA] (DROOLS-5388) Eclipse Rule Editor does not recognize Java source level
by Stefan Winkler (Jira)
Stefan Winkler created DROOLS-5388:
--------------------------------------
Summary: 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
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)
5 years, 11 months
[JBoss JIRA] (WFLY-13532) Dependency version substitutions in MP Quickstarts README.adoc
by Eduardo Martins (Jira)
Eduardo Martins created WFLY-13532:
--------------------------------------
Summary: Dependency version substitutions in MP Quickstarts README.adoc
Key: WFLY-13532
URL: https://issues.redhat.com/browse/WFLY-13532
Project: WildFly
Issue Type: Enhancement
Components: Quickstarts
Reporter: Eduardo Martins
Assignee: Eduardo Martins
Most Microprofile Quickstarts have a section for user to build the app from scratch, which requires setting up the project's dependency versions as properties, and this enhancement should add automatically substitution for such versions.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13051) provide setRemoveOnCancelPolicy on ManagedScheduledExecutorService
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-13051?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty commented on WFLY-13051:
--------------------------------------------
[~nimo22] Can you please provide the steps to recreate this issue?
> provide setRemoveOnCancelPolicy on ManagedScheduledExecutorService
> ------------------------------------------------------------------
>
> Key: WFLY-13051
> URL: https://issues.redhat.com/browse/WFLY-13051
> Project: WildFly
> Issue Type: Enhancement
> Components: Concurrency Utilities
> Affects Versions: 19.0.0.Beta1
> Reporter: nimo stephan
> Assignee: Eduardo Martins
> Priority: Major
>
> Using
> {code:java}
> @Resource
> private ManagedScheduledExecutorService executor;
> {code}
> provides no possiblity to setRemoveOnCancelPolicy to true.
> A casting within a method:
> {code:java}
> ((ScheduledThreadPoolExecutor) executor).setRemoveOnCancelPolicy(true);
> {code}
> throws the error:
> {code:java}
> Caused by: javax.ejb.EJBException: java.lang.ClassCastException: class org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter cannot be cast to class java.util.concurrent.ScheduledThreadPoolExecutor (org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter is in unnamed module of loader 'org.glassfish.javax.enterprise.concurrent' @a93b7af; java.util.concurrent.ScheduledThreadPoolExecutor is in module java.base of loader 'bootstrap')
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:246)
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:388)
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:68)
> {code}
> Please provide option to cast or if not possible to add the property
> {code:java}
> setRemoveOnCancelPolicy()
> {code}
> within the object ManagedScheduledExecutorService. Because without it, we cannot remove a task from the queue with "future.cancel(false)".
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13051) provide setRemoveOnCancelPolicy on ManagedScheduledExecutorService
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-13051?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty updated WFLY-13051:
---------------------------------------
Comment: was deleted
(was: [~nimo22] Can you please provide the steps to recreate this issue?)
> provide setRemoveOnCancelPolicy on ManagedScheduledExecutorService
> ------------------------------------------------------------------
>
> Key: WFLY-13051
> URL: https://issues.redhat.com/browse/WFLY-13051
> Project: WildFly
> Issue Type: Enhancement
> Components: Concurrency Utilities
> Affects Versions: 19.0.0.Beta1
> Reporter: nimo stephan
> Assignee: Eduardo Martins
> Priority: Major
>
> Using
> {code:java}
> @Resource
> private ManagedScheduledExecutorService executor;
> {code}
> provides no possiblity to setRemoveOnCancelPolicy to true.
> A casting within a method:
> {code:java}
> ((ScheduledThreadPoolExecutor) executor).setRemoveOnCancelPolicy(true);
> {code}
> throws the error:
> {code:java}
> Caused by: javax.ejb.EJBException: java.lang.ClassCastException: class org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter cannot be cast to class java.util.concurrent.ScheduledThreadPoolExecutor (org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter is in unnamed module of loader 'org.glassfish.javax.enterprise.concurrent' @a93b7af; java.util.concurrent.ScheduledThreadPoolExecutor is in module java.base of loader 'bootstrap')
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:246)
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:388)
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:68)
> {code}
> Please provide option to cast or if not possible to add the property
> {code:java}
> setRemoveOnCancelPolicy()
> {code}
> within the object ManagedScheduledExecutorService. Because without it, we cannot remove a task from the queue with "future.cancel(false)".
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (WFLY-13051) provide setRemoveOnCancelPolicy on ManagedScheduledExecutorService
by Ranabir Chakraborty (Jira)
[ https://issues.redhat.com/browse/WFLY-13051?page=com.atlassian.jira.plugi... ]
Ranabir Chakraborty commented on WFLY-13051:
--------------------------------------------
[~nimo22] [~emmartins] Can you please provide the steps to recreate this issue?
> provide setRemoveOnCancelPolicy on ManagedScheduledExecutorService
> ------------------------------------------------------------------
>
> Key: WFLY-13051
> URL: https://issues.redhat.com/browse/WFLY-13051
> Project: WildFly
> Issue Type: Enhancement
> Components: Concurrency Utilities
> Affects Versions: 19.0.0.Beta1
> Reporter: nimo stephan
> Assignee: Eduardo Martins
> Priority: Major
>
> Using
> {code:java}
> @Resource
> private ManagedScheduledExecutorService executor;
> {code}
> provides no possiblity to setRemoveOnCancelPolicy to true.
> A casting within a method:
> {code:java}
> ((ScheduledThreadPoolExecutor) executor).setRemoveOnCancelPolicy(true);
> {code}
> throws the error:
> {code:java}
> Caused by: javax.ejb.EJBException: java.lang.ClassCastException: class org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter cannot be cast to class java.util.concurrent.ScheduledThreadPoolExecutor (org.glassfish.enterprise.concurrent.ManagedScheduledExecutorServiceAdapter is in unnamed module of loader 'org.glassfish.javax.enterprise.concurrent' @a93b7af; java.util.concurrent.ScheduledThreadPoolExecutor is in module java.base of loader 'bootstrap')
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:246)
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:388)
> at org.jboss.as.ejb3@17.0.1.Final//org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:68)
> {code}
> Please provide option to cast or if not possible to add the property
> {code:java}
> setRemoveOnCancelPolicy()
> {code}
> within the object ManagedScheduledExecutorService. Because without it, we cannot remove a task from the queue with "future.cancel(false)".
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5387) Rule Names are converted GDST <-> XLS
by Jozef Marko (Jira)
Jozef Marko created DROOLS-5387:
-----------------------------------
Summary: Rule Names are converted GDST <-> XLS
Key: DROOLS-5387
URL: https://issues.redhat.com/browse/DROOLS-5387
Project: Drools
Issue Type: Bug
Components: Guided Decision Table Editor, XLS Decision Table Editor
Reporter: Jozef Marko
Assignee: Toni Rikkola
After DROOLS-5333 we should ensure custom rule names are correctly converted in both ways GDST->XLS and XLS->GDST.
Currently even if in GDST we declared custom rule names in the converted XLS are used some autogonerated values as [tablename_rowindex].
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months
[JBoss JIRA] (DROOLS-5333) Allow to customize rule names in guided decision table editor
by Jozef Marko (Jira)
[ https://issues.redhat.com/browse/DROOLS-5333?page=com.atlassian.jira.plug... ]
Jozef Marko updated DROOLS-5333:
--------------------------------
Description:
Add a column into the GDST where you can set the rule name for the rule that is generated from that row.
h3. Check to be done during manual review
- Guided Rule Templates are not affected (/)
- Guided Rules are not affected (/)
- bxms-qe-tests internal are updated
- Firefox (/)
- Chrome (/)
- Create new table, Put value, Save and reopen, Remove value, Save and reopen (/)
- Open existing table (Pricing loans) (/)
- Create scesim file to check execution is not affected
- GDST to XLS conversion (x) https://issues.redhat.com/browse/DROOLS-5387
- Tooltip for added check box - (x)
was:
Add a column into the GDST where you can set the rule name for the rule that is generated from that row.
h3. Check to be done during manual review
- Guided Rule Templates are not affected (/)
- Guided Rules are not affected (/)
- bxms-qe-tests internal are updated
- Firefox (/)
- Chrome (/)
- Create new table, Put value, Save and reopen, Remove value, Save and reopen (/)
- Open existing table (Pricing loans) (/)
- Create scesim file to check execution is not affected
- GDST to XLS conversion
- Tooltip for added check box - (x)
> Allow to customize rule names in guided decision table editor
> -------------------------------------------------------------
>
> Key: DROOLS-5333
> URL: https://issues.redhat.com/browse/DROOLS-5333
> Project: Drools
> Issue Type: Feature Request
> Reporter: Toni Rikkola
> Assignee: Toni Rikkola
> Priority: Major
> Labels: drools-tools
> Attachments: rulename-column.webm
>
>
> Add a column into the GDST where you can set the rule name for the rule that is generated from that row.
> h3. Check to be done during manual review
> - Guided Rule Templates are not affected (/)
> - Guided Rules are not affected (/)
> - bxms-qe-tests internal are updated
> - Firefox (/)
> - Chrome (/)
> - Create new table, Put value, Save and reopen, Remove value, Save and reopen (/)
> - Open existing table (Pricing loans) (/)
> - Create scesim file to check execution is not affected
> - GDST to XLS conversion (x) https://issues.redhat.com/browse/DROOLS-5387
> - Tooltip for added check box - (x)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 11 months