Skip to content

Class org.testcontainers.shaded.javax.annotation.CheckForNull not found #801

@alesavin

Description

@alesavin

Hello,

Class com.github.dockerjava.api.command.InspectContainerResponse from testcontainers-1.8.1 have

import org.testcontainers.shaded.javax.annotation.CheckForNull;

and shading for com.google.code.findbugs:jsr305 (#563), but have no class at bundle. Java have no problem with it due of ignorance of annotation missing imports, but while I compile code below with Scala 2.11

import org.testcontainers.containers.MySQLContainer

object ScalaContainerInit {

  def main(args: Array[String]) {
    // there construct of anonymous class is required for reproduce  
    new MySQLContainer(s"mysql:5.7.18") { }
  }
}

catch the compile warning

[WARNING] warning: Class org.testcontainers.shaded.javax.annotation.CheckForNull not found - continuing with a stub.

The Scala compiler requires that all classes referenced in signatures of classes that in use available on the compile time classpath. With -Xfatal-warnings it was a problem.

It possible to add missed lib to shaded?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions