[JBoss JIRA] (DROOLS-355) Do not import com.sun.tools.xjc in drools-core and drools-compiler to fix drools on Karaff and Fuse
by Geoffrey De Smet (JIRA)
[ https://issues.jboss.org/browse/DROOLS-355?page=com.atlassian.jira.plugin... ]
Geoffrey De Smet commented on DROOLS-355:
-----------------------------------------
Will also break Drools on Java 9: https://www.voxxed.com/blog/2015/05/will-java-9-mess-up-your-code/
> Do not import com.sun.tools.xjc in drools-core and drools-compiler to fix drools on Karaff and Fuse
> ---------------------------------------------------------------------------------------------------
>
> Key: DROOLS-355
> URL: https://issues.jboss.org/browse/DROOLS-355
> Project: Drools
> Issue Type: Task
> Affects Versions: 6.0.0.Final
> Reporter: Geoffrey De Smet
> Assignee: Mario Fusco
>
> By importing com.sun.tools.xjc, 3 problems arise:
> * OSGi and Karaf trip over it.
> {code}
> [WARNING] No export found to match com.sun.tools.xjc (imported by mvn:org.drools/drools-core/6.0.0.Final)
> {code}
> * JDK 9 will break any java app that uses com.sun.* classes. See Mark Reinhold's Jigsaw presentation at devoxxBE 2013.
> * IBM JDK's etc don't have com.sun.* classes. Why don't they trip over this?
> Why do we have those imports in the first place? Looks like code for old JAXB code - which is hopefully stale now.
> Where do we use it?
> {code}
> Targets
> String 'com.sun.tools.xjc'
> Found usages (38 usages found)
> drools-compiler (7 usages found)
> /home/gdesmet/projects/jboss/droolsjbpm/drools/drools-compiler (1 usage found)
> pom.xml (1 usage found)
> (246: 15) com.sun.tools.xjc.*;resolution:=optional,
> org.drools.compiler.builder.impl (1 usage found)
> KnowledgeBuilderFactoryServiceImpl.java (1 usage found)
> (18: 8) import com.sun.tools.xjc.Options;
> org.drools.compiler.runtime.pipeline.impl (5 usages found)
> DroolsJaxbHelperProviderImpl.java (5 usages found)
> (77: 8) import com.sun.tools.xjc.BadCommandLineException;
> (78: 8) import com.sun.tools.xjc.ErrorReceiver;
> (79: 8) import com.sun.tools.xjc.ModelLoader;
> (80: 8) import com.sun.tools.xjc.Options;
> (81: 8) import com.sun.tools.xjc.model.Model;
> drools-core (2 usages found)
> org.drools.core.builder.conf.impl (2 usages found)
> JaxbConfigurationImpl.java (2 usages found)
> (28: 8) import com.sun.tools.xjc.Language;
> (34: 8) import com.sun.tools.xjc.Options;
> kie-internal (6 usages found)
> /home/gdesmet/projects/jboss/droolsjbpm/droolsjbpm-knowledge/kie-internal (1 usage found)
> pom.xml (1 usage found)
> (27: 15) com.sun.tools.xjc;resolution:=optional,
> org.kie.internal.builder (3 usages found)
> JaxbConfiguration.java (1 usage found)
> (23: 8) import com.sun.tools.xjc.Options;
> KnowledgeBuilderFactory.java (1 usage found)
> (24: 8) import com.sun.tools.xjc.Options;
> KnowledgeBuilderFactoryService.java (1 usage found)
> (24: 8) import com.sun.tools.xjc.Options;
> org.kie.internal.builder.help (2 usages found)
> DroolsJaxbHelperProvider.java (1 usage found)
> (29: 8) import com.sun.tools.xjc.Options;
> KnowledgeBuilderHelper.java (1 usage found)
> (30: 8) import com.sun.tools.xjc.Options;
> knowledge-api (8 usages found)
> org.drools.builder (3 usages found)
> JaxbConfiguration.java (1 usage found)
> (21: 8) import com.sun.tools.xjc.Options;
> KnowledgeBuilderFactory.java (1 usage found)
> (24: 8) import com.sun.tools.xjc.Options;
> KnowledgeBuilderFactoryService.java (1 usage found)
> (24: 8) import com.sun.tools.xjc.Options;
> org.drools.builder.help (3 usages found)
> DroolsJaxbHelperProvider.java (1 usage found)
> (29: 8) import com.sun.tools.xjc.Options;
> KnowledgeBuilderHelper.java (2 usages found)
> (32: 8) import com.sun.tools.xjc.Language;
> (33: 8) import com.sun.tools.xjc.Options;
> org.drools.impl (1 usage found)
> KnowledgeBuilderFactoryServiceImpl.java (1 usage found)
> (16: 8) import com.sun.tools.xjc.Options;
> org.drools.impl.adapters (1 usage found)
> JaxbConfigurationAdapter.java (1 usage found)
> (3: 8) import com.sun.tools.xjc.Options;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 11 months
[JBoss JIRA] (JASSIST-247) SerializedProxy won't work on JDK8
by Jumper Chen (JIRA)
[ https://issues.jboss.org/browse/JASSIST-247?page=com.atlassian.jira.plugi... ]
Jumper Chen commented on JASSIST-247:
-------------------------------------
a workaround is to handle the serilization by ourself that we can override the writeObject() and readObject() into the class of FormStatusImpl, but it needs a public method of ProxyFactory#createClass(byte[] signature).
> SerializedProxy won't work on JDK8
> ----------------------------------
>
> Key: JASSIST-247
> URL: https://issues.jboss.org/browse/JASSIST-247
> Project: Javassist
> Issue Type: Bug
> Affects Versions: 3.18.2-GA, 3.19.0-GA
> Environment: JDK 8
> Reporter: Jumper Chen
> Assignee: Shigeru Chiba
> Labels: javassist, serializable, serialization
>
> If we serialize the proxy object, it will cause java.lang.ClassCastException on JDK8, but it works on JDK7.
> The following is its error log.
> {code}
> Exception in thread "main" java.lang.ClassCastException: cannot assign instance of javassist.util.proxy.SerializedProxy to field issue.SerializationIssue$FormProxyHandler$FormStatusImpl.self of type issue.SerializationIssue$FormProxyObject in instance of issue.SerializationIssue$FormProxyHandler$FormStatusImpl
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 11 months
[JBoss JIRA] (JASSIST-247) SerializedProxy won't work on JDK8
by Jumper Chen (JIRA)
Jumper Chen created JASSIST-247:
-----------------------------------
Summary: SerializedProxy won't work on JDK8
Key: JASSIST-247
URL: https://issues.jboss.org/browse/JASSIST-247
Project: Javassist
Issue Type: Bug
Affects Versions: 3.19.0-GA, 3.18.2-GA
Environment: JDK 8
Reporter: Jumper Chen
Assignee: Shigeru Chiba
If we serialize the proxy object, it will cause java.lang.ClassCastException on JDK8, but it works on JDK7.
The following is its error log.
{code}
Exception in thread "main" java.lang.ClassCastException: cannot assign instance of javassist.util.proxy.SerializedProxy to field issue.SerializationIssue$FormProxyHandler$FormStatusImpl.self of type issue.SerializationIssue$FormProxyObject in instance of issue.SerializationIssue$FormProxyHandler$FormStatusImpl
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 11 months
[JBoss JIRA] (WFLY-4702) Add smoke test for showing the real value of expression in CLI
by Marek Kopecký (JIRA)
Marek Kopecký created WFLY-4702:
-----------------------------------
Summary: Add smoke test for showing the real value of expression in CLI
Key: WFLY-4702
URL: https://issues.jboss.org/browse/WFLY-4702
Project: WildFly
Issue Type: Task
Components: Test Suite
Reporter: Marek Kopecký
Assignee: Marek Kopecký
https://issues.jboss.org/browse/EAP7-275 is adding ability to CLI to show the real value of expression properties in addition to the expression
This test serves as basic smoke tests to be run within the testsuite.
RealValueExpressionTestCase:
* creates new system property "real.value.expression.test.case" with value in this format: $\{oldSystemProperty:defaultValue\}
* test "read-resource" and "read-attribute" operations, these operations should work correctly with resolve-expressions parametr
* remove newly created system property
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
8 years, 11 months