DigestInputStream not available in java.security?

22 views
Skip to first unread message

ang...@vegle.gr

unread,
Dec 6, 2017, 12:21:01 PM12/6/17
to j2objc-discuss
Hi to all,

I am trying to compile bitcoinj library [https://github.com/bitcoinj/bitcoinj] using the maven plugin.

I get an error for the DigestInputStream class of the java.security package (cannot find symbol).

Is this something that is not implemented yet?


Thanks in advance!


[ERROR] /Users/angel/bitcoinj/core/src/main/java/org/bitcoinj/core/CheckpointManager.java:40: error: cannot find symbol
[ERROR] import java.security.DigestInputStream;
[ERROR] ^
[ERROR] symbol: class DigestInputStream
[ERROR] location: package java.security
[ERROR] /Users/angel/CodeSync/Coinomi/bitcoinj/core/src/main/java/org/bitcoinj/core/CheckpointManager.java:118: error: cannot find symbol
[ERROR] DigestInputStream digestInputStream = new DigestInputStream(inputStream, digest);

Tom Ball

unread,
Dec 6, 2017, 1:29:52 PM12/6/17
to j2objc-...@googlegroups.com
It's wasn't implemented because it wasn't part of Apache Harmony, our original base for the JRE emulation library. However, now that it's based on Android's libcore library, those classes are available. I just added them with their associated unit tests, and so far, everything is building. If you file an issue, you'll be notified when these are available.

--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Ball

unread,
Dec 6, 2017, 4:08:37 PM12/6/17
to j2objc-...@googlegroups.com
The DigestInputStream and DigestOutputStream classes and their unit tests were added to the repository. Here are the instructions for building a new j2objc distribution bundle.
Reply all
Reply to author
Forward
0 new messages