xerial / snappy-java

Snappy compressor/decompressor for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[UNSUPPORTED_PLATFORM] pure-java snappy requires access to java.nio.Buffer (same as #289)

stefan-reich opened this issue · comments

Hi, I am getting the same error as in #289, but it's a different platform (Linux Mint 19 with JDK 18). What to do?

org.xerial.snappy.SnappyError: [UNSUPPORTED_PLATFORM] pure-java snappy requires access to java.nio.Buffer raw address field
	at org.xerial.snappy.pure.UnsafeUtil.<clinit>(UnsafeUtil.java:49)
	at org.xerial.snappy.pure.SnappyRawCompressor.writeUncompressedLength(SnappyRawCompressor.java:405)
	at org.xerial.snappy.pure.SnappyRawCompressor.compress(SnappyRawCompressor.java:111)
	at org.xerial.snappy.pure.PureJavaSnappy.rawCompress(PureJavaSnappy.java:128)
	at org.xerial.snappy.Snappy.rawCompress(Snappy.java:424)
	at org.xerial.snappy.Snappy.compress(Snappy.java:105)

Note: I am using the Snappy-Java 1.8.4 JAR with the native stuff removed (trying to go pure Java). Thanks

Thanks for the report. The pure-java move has been removed since 1.1.9.0