jarbouncycastlejce

bouncy castle: How to get bcpkix-jdk15on-1.47.jar with debug information


I am trying to debug an issue with bouncy castle 1.47. I can find a debug jar for 'bcprov' but not for {org.bouncycastle:bcpkix-jdk15on:1.47:jar}.

Is there any other place to download bcpkix-jdk15on-1.47.jar with debug information?

or

Is there a tool that can generate line numbers from a jar (containing .class files) without line numbers and also generated sources for the same generated jar?

or

I had been trying to build the jars from source 1 but the build cannot find the test jars I suppose from the errors.

  [javadoc] /tickets/bouncycastle/src-cvs/java/crypto/build/artifacts/jdk1.5/bcprov-jdk15on-147/src/org/bouncycastle/jce/provider/test/AllTests.java:5: package junit.framework does not exist
  [javadoc] import junit.framework.Test;
  [javadoc]                       ^
  [javadoc] /tickets/bouncycastle/src-cvs/java/crypto/build/artifacts/jdk1.5/bcprov-jdk15on-147/src/org/bouncycastle/jce/provider/test/AllTests.java:6: package junit.framework does not exist
  [javadoc] import junit.framework.TestCase;
  [javadoc]                       ^
  [javadoc] /tickets/bouncycastle/src-cvs/java/crypto/build/artifacts/jdk1.5/bcprov-jdk15on-147/src/org/bouncycastle/jce/provider/test/AllTests.java:7: package junit.framework does not exist
  [javadoc] import junit.framework.TestSuite;

Any help is appreciated.


Solution

  • I have managed to generate jar with debug information from bouncy castle source.

    in ROOT_SRC/bc-build.properties, set release.debug to true

    release.suffix: 147
    release.name: 1.47
    release.debug: true
    

    The build expects mail (sun implementation) and junit jars to be available in classpath. I have put them on to jdk/jre/lib/ext and the build worked. the artifacts were generated in the ROOT_SRC/build directory.