[jboss-jira] [JBoss JIRA] (DROOLS-5156) Fix PackageDescr serialization

Gabriele Cardosi (Jira) issues at jboss.org
Thu Mar 12 10:08:47 EDT 2020


Gabriele Cardosi created DROOLS-5156:
----------------------------------------

             Summary: 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


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)

              



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list