[JBoss JIRA] (DROOLS-5168) Collection editor for List of Enums
by Yeser Amer (Jira)
[ https://issues.redhat.com/browse/DROOLS-5168?page=com.atlassian.jira.plug... ]
Yeser Amer updated DROOLS-5168:
-------------------------------
Fix Version/s: 7.39.0.Final
> Collection editor for List of Enums
> -----------------------------------
>
> Key: DROOLS-5168
> URL: https://issues.redhat.com/browse/DROOLS-5168
> Project: Drools
> Issue Type: Bug
> Components: Scenario Simulation and Testing
> Affects Versions: 7.35.0.Final
> Reporter: Anna Dupliak
> Assignee: Yeser Amer
> Priority: Major
> Labels: drools-tools
> Fix For: 7.39.0.Final
>
> Attachments: MySpace_project.zip, Screenshot from 2020-03-09 16-06-05.png
>
>
> There is issue in Test Scenarios when user invokes the collection editor for {{java.util.List<MyEnum>}} field.
> {code}Uncaught exception: (TypeError) : Cannot read property 'getSimpleProperties_1_g$' of null {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
1 year, 12 months
[JBoss JIRA] (DROOLS-5331) Support for Enums in Rule Test Scenario
by Yeser Amer (Jira)
[ https://issues.redhat.com/browse/DROOLS-5331?page=com.atlassian.jira.plug... ]
Yeser Amer updated DROOLS-5331:
-------------------------------
Fix Version/s: 7.39.0.Final
> Support for Enums in Rule Test Scenario
> ---------------------------------------
>
> Key: DROOLS-5331
> URL: https://issues.redhat.com/browse/DROOLS-5331
> Project: Drools
> Issue Type: Feature Request
> Reporter: Yeser Amer
> Assignee: Yeser Amer
> Priority: Major
> Labels: drools-tools
> Fix For: 7.39.0.Final
>
> Attachments: Customer.java, EnumTest.java
>
>
> Currently, Test Scenario doesn't support an attribute of Enumeration type.
> In case of RULE Scenario:
> Loading a Data Object with such attribute, will result in Complex Type properties with a nested simple property "declaringClass" of "java.lang.Class" type.
> The expected result should be a Simple property of Enum type (in this case: category [java.lang.Enum] )
> In case of DMN Scenario:
> Currently no impacts
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
1 year, 12 months
[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)
1 year, 12 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)
1 year, 12 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)
1 year, 12 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)
1 year, 12 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)
1 year, 12 months