[
http://jira.codehaus.org/browse/MCLIRR-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_119191
]
Jochen Wiedmann commented on MCLIRR-7:
--------------------------------------
Evaluation: In AbstractClirrMojo.resolvePreviousReleaseClasses the following
code snipped can be found:
// TODO: better way? Can't use previousArtifact as the
originatingArtifact, it culls everything out
// perhaps resolve the artifact itself (not the pom artifact),
then load the pom and get dependencies
Artifact dummy = factory.createProjectArtifact( "dummy", "dummy",
"1.0" );
ArtifactResolutionResult result = resolver.resolveTransitively(
previousArtifacts,
dummy, localRepository,
project.getRemoteArtifactRepositories(),
metadataSource, null );
Where "previousArtifacts" is the previous artifact (for example
commons-fileupload-1.2.jar), dummy is as displayed above (I tried using the
previousArtifact as well with no different result). The value of
result.getArtifacts() is null or the empty collection. It does not even include
the set previousArtifacts.
> Fail's checking if dependencies are declared as optional
> --------------------------------------------------------
>
> Key: MCLIRR-7
> URL: http://jira.codehaus.org/browse/MCLIRR-7
> Project: Maven 2.x Clirr Plugin
> Issue Type: Bug
> Environment: N/A
> Reporter: David J. M. Karlsen
> Assignee: Jochen Wiedmann
>
> If a dependency is declared optional - and classes in it are either extended
> or elsewise supposed to be checked by clirr, it fails with a
> ClassNotFoundException
> java.lang.ClassNotFoundException:
> org.springframework.web.servlet.HandlerInterceptor not found.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] null
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NullPointerException
> at
> org.apache.bcel.classfile.JavaClass.getAllInterfaces(JavaClass.java:808)
> at
> net.sf.clirr.core.internal.bcel.BcelJavaType.getAllInterfaces(BcelJavaType.java:78)
> at
> net.sf.clirr.core.internal.checks.InterfaceSetCheck.check(InterfaceSetCheck.java:58)
> at net.sf.clirr.core.Checker.runClassChecks(Checker.java:190)
> at net.sf.clirr.core.Checker.reportDiffs(Checker.java:136)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email