You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "James R. Ratzlaff (Jira)" <ji...@apache.org> on 2019/12/17 17:39:00 UTC

[jira] [Updated] (MNG-6828) DependencyResolutionException breaks serialization

     [ https://issues.apache.org/jira/browse/MNG-6828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James R. Ratzlaff updated MNG-6828:
-----------------------------------
    Description: In class [DependencyResolutionException|https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java] , the field "[result|https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java#L29]" is the non-serializable type DependencyResolution. This causes serialization to fail (since it's super class, Exception, is inherently Serializable).  This field should have [transient access similar to the DependencyResolutionException in the maven-resolver-api.|https://github.com/apache/maven-resolver/blob/2a1f4a134f7d7784f2a64bf58bddd2732bb599a4/maven-resolver-api/src/main/java/org/eclipse/aether/resolution/DependencyResolutionException.java#L31]  (was: In class [DependencyResolutionException|https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java] , the field "[result|https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java#L29]" is the non-serializable type DependencyResolution. This causes serialization to fail (since it's super class, Exception, is inherently Serializable).  This field should have [transient access similar to the DependencyResolution in the maven-resolver-api.|https://github.com/apache/maven-resolver/blob/2a1f4a134f7d7784f2a64bf58bddd2732bb599a4/maven-resolver-api/src/main/java/org/eclipse/aether/resolution/DependencyResolutionException.java#L31])

> DependencyResolutionException breaks serialization
> --------------------------------------------------
>
>                 Key: MNG-6828
>                 URL: https://issues.apache.org/jira/browse/MNG-6828
>             Project: Maven
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.6.3
>            Reporter: James R. Ratzlaff
>            Priority: Major
>
> In class [DependencyResolutionException|https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java] , the field "[result|https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-core/src/main/java/org/apache/maven/project/DependencyResolutionException.java#L29]" is the non-serializable type DependencyResolution. This causes serialization to fail (since it's super class, Exception, is inherently Serializable).  This field should have [transient access similar to the DependencyResolutionException in the maven-resolver-api.|https://github.com/apache/maven-resolver/blob/2a1f4a134f7d7784f2a64bf58bddd2732bb599a4/maven-resolver-api/src/main/java/org/eclipse/aether/resolution/DependencyResolutionException.java#L31]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)