[jboss-jira] [JBoss JIRA] (DROOLS-5156) Fix PackageDescr serialization
Gabriele Cardosi (Jira)
issues at jboss.org
Thu Mar 12 10:08:47 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gabriele Cardosi updated DROOLS-5156:
-------------------------------------
Description:
Step to reproduce:
# create a PackageDescrBuilder builder
# declare types with {code:java}builder.newDeclare().type()....{code}
# create a PackageDescr descr with `builder.getDescr()`
# invoke `descr.writeExternal(ObjectOutput)`
The following exception is thrown
`java.io.NotSerializableException: org.drools.compiler.lang.descr.QualifiedName`
because inside PackageDescr there is a `TypeDeclarationDescr` (that is _serializable_) that in turn contains `QualifiedName` (that is not)
was:
Step to reproduce:
# create a PackageDescrBuilder builder
# declare types with `builder.newDeclare().type()....`
# create a PackageDescr descr with `builder.getDescr()`
# invoke `descr.writeExternal(ObjectOutput)`
The following exception is thrown
`java.io.NotSerializableException: org.drools.compiler.lang.descr.QualifiedName`
because inside PackageDescr there is a `TypeDeclarationDescr` (that is _serializable_) that in turn contains `QualifiedName` (that is not)
> Fix PackageDescr serialization
> ------------------------------
>
> Key: DROOLS-5156
> URL: https://issues.redhat.com/browse/DROOLS-5156
> Project: Drools
> Issue Type: Task
> Reporter: Gabriele Cardosi
> Assignee: Gabriele Cardosi
> Priority: Minor
> Labels: drools
>
> Step to reproduce:
> # create a PackageDescrBuilder builder
> # declare types with {code:java}builder.newDeclare().type()....{code}
> # create a PackageDescr descr with `builder.getDescr()`
> # invoke `descr.writeExternal(ObjectOutput)`
> The following exception is thrown
> `java.io.NotSerializableException: org.drools.compiler.lang.descr.QualifiedName`
> because inside PackageDescr there is a `TypeDeclarationDescr` (that is _serializable_) that in turn contains `QualifiedName` (that is not)
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list