Unshaded java dependencies in the AthenaJDBC jar

0

Not really a question, really -- more of a bug report, but I can't find a better channel for this.

It looks like the AthenaJDBC42-2.0.30.1001.jar contains a set of Apache Commons dependency classes which have not been "shaded" to avoid collision with other dependency jars; for example:

  268 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/BinaryDecoder.class
   268 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/BinaryEncoder.class
   588 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/CharEncoding.class
  1286 Wed Jan 22 15:10:16 GMT 2020 org/apache/commons/codec/Charsets.class

Compare vs the Jackson dependency classes, which have been correctly shaded into the "com.simba.athena" package scope:

  449 Sun Mar 06 19:20:24 GMT 2022 com/simba/athena/shaded/fasterxml/jackson/annotation/JacksonAnnotation.class
   333 Sun Mar 06 19:20:24 GMT 2022 com/simba/athena/shaded/fasterxml/jackson/annotation/JacksonAnnotationValue.class
   542 Sun Mar 06 19:20:24 GMT 2022 com/simba/athena/shaded/fasterxml/jackson/annotation/JacksonAnnotationsInside.class

The unfortunate result of that for us was some NoSuchMethodError exceptions thrown from our code when it tried to use the Apache Commons CSVFormat lib:

Exception in thread "pool-001" java.lang.NoSuchMethodError: org.apache.commons.csv.CSVFormat.builder()Lorg/apache/commons/csv/CSVFormat$Builder;

Could this be fixed?

질문됨 2년 전87회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠