a few days ago, jira HBase-10336 added a UT KeyStoreTestUtil.java, which leverages the following sun classes: import sun.security.x509.AlgorithmId; import sun.security.x509.CertificateAlgorithmId; ....
well, it happens that I am amongst the minority who are using IBM JDK, and won't compile/run this class. There are similar classes like below in IBM jdk: import com.ibm.security.x509.AlgorithmId; import com.ibm.security.x509.CertificateAlgorithmId;
I think a ClassLoader could be a solution here, wondering what's the common way in HBase for such situation or an example will be much appreciated.
Basically, so that we can compile/run the UT on both JDK. thanks
Re: how to use different Sun/IBM classes according to JDK? (HBase-10336)