[
https://issues.apache.org/jira/browse/CRYPTO-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15325825#comment-15325825
]
Sebb commented on CRYPTO-64:
----------------------------
It looks like the code is intended to be run only on JVMs that support the
interface.
However, the code does not compile unless the sun.nio.ch.DirectBuffer
class/interface exists.
This restriction needs to be eliminated.
For example by using Reflection or conditional compilation.
> Code uses sun classes
> ---------------------
>
> Key: CRYPTO-64
> URL: https://issues.apache.org/jira/browse/CRYPTO-64
> Project: Commons Crypto
> Issue Type: Bug
> Environment: MacOSX El Capitan
> Reporter: Sebb
>
> $ mvn compile shows the following warnings:
> [WARNING] src/main/java/org/apache/commons/crypto/utils/Utils.java:[108,41]
> sun.nio.ch.DirectBuffer is internal proprietary API and may be removed in a
> future release
> [WARNING] src/main/java/org/apache/commons/crypto/utils/Utils.java:[109,27]
> sun.misc.Cleaner is internal proprietary API and may be removed in a future
> release
> [WARNING] src/main/java/org/apache/commons/crypto/utils/Utils.java:[109,64]
> sun.nio.ch.DirectBuffer is internal proprietary API and may be removed in a
> future release
> This means that the code will generally only run on specific Oracle Java
> versions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)