Cglib conflict with ASM version _cglib

Source: Internet
Author: User

Cglib version 3.1 self-ASM 4.2 version

Conflicts with the introduced ASM 3.3.1,


So relying on the Cglib self dependent ASM can


<!--ASM Cglib-->
        <!--<dependency>-->
            <!--<groupId>asm</groupId>-->
            <!--<artifactId>asm</artifactId>-->
            <!--<version>${asm.version}</ Version>-->
        <!--</dependency>-->
        <dependency>
            <groupid>cglib</ groupid>
            <artifactId>cglib</artifactId>
            <version>${cglib.version}</version>
        </dependency>
        <!--ASM Cglib-->


Cglib3.1-pom

<dependencies>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactid >asm</artifactId>
      <version>4.2</version>
    </dependency>
    <dependency >
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm-util</artifactId>
      < version>4.2</version>
      <optional>true</optional>
    </dependency>


Solutions on the Web:

The Cglib version is 3.0 or 3.1,ORG.OBJECTWEB.ASM version 3.1.0 O'Clock
Version conflict, error Java.lang.IncompatibleClassChangeError:class Net.sf.cglib.core.DebuggingClassWriter has interface Org.objectweb.asm.ClassVisitor as Super class
Use Cglib 2.2 To resolve this issue, in which the Debuggingclasswriter parent class is Classwriter



According to this plan still error.

LIB file does not match, we download the latest ASM file, then solve the above problems.

Asm-5.2.jar

http://forge.ow2.org/projects/asm/




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.