Skip to content
This repository was archived by the owner on Apr 4, 2022. It is now read-only.
This repository was archived by the owner on Apr 4, 2022. It is now read-only.

NoSuchMethodError in runtime for scalaj-http_2.12 #216

@HetongWang

Description

@HetongWang

It seems the scalaj-http_2.12 package is compiled with 2.11. I got the following Exception in runtime.
java.lang.NoSuchMethodError: scala.Product.$init$(Lscala/Product;)

Here is the dependency

<dependency>
                <groupId>org.scalaj</groupId>
                <artifactId>scalaj-http_2.12</artifactId>
                <version>2.4.2</version>
</dependency>

Here is the decompiled source code where invoking scala/Product

  private scalaj.http.BuildInfo$();
    Code:
       0: aload_0
       1: invokespecial #69                 // Method java/lang/Object."<init>":()V
       4: aload_0
       5: putstatic     #68                 // Field MODULE$:Lscalaj/http/BuildInfo$;
       8: aload_0
       9: invokestatic  #73                 // InterfaceMethod scala/Product.$init$:(Lscala/Product;)V
      12: aload_0
      13: ldc           #75                 // String 2.4.2
      15: putfield      #22                 // Field version:Ljava/lang/String;
      18: aload_0
      19: new           #77                 // class scala/collection/immutable/StringOps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions