TheJacksonLaboratory / diachromatic

Diachromatic is a Java application for preprocessing and quality control of Hi-C and CHi-C data.
https://diachromatic.readthedocs.io/en/latest/
GNU General Public License v3.0
3 stars 1 forks source link

WARNING: sun.reflect.Reflection.getCallerClass is not supported #159

Closed hansenp closed 1 year ago

hansenp commented 2 years ago

After upgrading from Java 8 to 17 I get the following warning when executing Diachromatic.

$ java -jar target/Diachromatic.jar -h
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/hansep/git/diachromatic/target/Diachromatic.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/hansep/git/diachromatic/target/lib/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Usage: diachromatic [-hV] [COMMAND]
Hi-C and Capture Hi-C analysis
  -h, --help      Show this help message and exit.
  -V, --version   Print version information and exit.
Commands:
  align, A      align with uses bowtie2 to align Hi-C reads and then performs
                  Q/C, artifact filtering and pairing of valid read pairs.
  bad, B        TODO analyze bad reads.
  count, C      count valid pairs between pairs of restriction fragments from a
                  BAM file creted in the alignstep with a GOPHER digest file.
  truncate, T   Truncate reads at the positions of Hi-C religation sequences.
  summarize, S  The summarize command outputs an HTML file with a summary of
                  the analysis.
pnrobinson commented 1 year ago

@hansenp I do not think this warning is serious since we do not use reflection for any of the logic in Diachromatic -- it can be ignored.