Issue Details (XML | Word | Printable)

Key: OSGI-155
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Costin Leau
Reporter: Raman Gupta
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Spring OSGi

Specify asm import version on spring-core module to avoid inadvertent use of older binary incompatible asm

Created: 13/Jun/07 04:53 PM   Updated: 14/Aug/07 04:03 AM   Resolved: 14/Aug/07 04:03 AM
Component/s: None
Affects Version/s: 1.0 M2
Fix Version/s: 1.0 M3

Time Tracking:
Not Specified


 Description  « Hide
The spring-core module currently does not specify a version for the import of the org.objectweb.asm* packages. Since asm v1 is binary incompatible with v2 this can cause a problem. Some other projects (e.g. hibernate) require the v1 version while Spring requires the v2 version.

The pom.xml should thus be updated, something like:

   org.objectweb.asm*;resolution:=optional;version=2.2.3,

The patch is:

Index: spring-modules/spring-core/pom.xml
===================================================================
--- spring-modules/spring-core/pom.xml (revision 7383)
+++ spring-modules/spring-core/pom.xml (working copy)
@@ -19,7 +19,7 @@
           <spring.osgi.import.pkg>
    org.apache.commons.collections*;resolution:=optional,
    org.apache.log4j*;resolution:=optional,
- org.objectweb.asm*;resolution:=optional,
+ org.objectweb.asm*;resolution:=optional;version=2.2.3,
    javax.xml.transform;resolution:=optional,
    org.w3c.dom;resolution:=optional,
    org.xml.sax;resolution:=optional
@@ -27,4 +27,4 @@
   </properties>


There are no comments yet on this issue.