I am getting the warning
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.itextpdf.text.io.ByteBufferRandomAccessSource$1 (file:/home/rcain/TBSFiles/Java/signature0.5.1/dist/lib/itextpdf-5.5.13.3.jar) to method java.nio.DirectByteBuffer.cleaner()
WARNING: Please consider reporting this to the maintainers of com.itextpdf.text.io.ByteBufferRandomAccessSource$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
When i run this code
MakeSignature.signDetached(sap, digest, signature, chain, null, null, null, 0, MakeSignature.CryptoStandard.CMS);
the warning does not effect the functionality of the function but it makes the code messy. Is there any way of hiding this warning or blocking it from echoing from the console?
I have tried changing the "System.out" and "System.err" PrintStreams but the warning is still persisting.