I want to debug my application that is using SunPCKS11 class. Oracle's JDK doesn't come with sources for PKCS11 libraries, so I downloaded the OpenJDK source for that class from github.
However, when I attach sources from that file, Eclipse doesn't recognize it and gives me "The source attachment does not contain the source for the file SunPKCS11.class".
I also tried downloading the whole PKCS11 sources folder and packaged it in JAR. The directory structure in JAR looks like this: sun/security/PKCS11, but again, when I attach the JAR as a source it isn't recognized by Eclipse.
Note that I still use Oracle's JDK, not OpenJDK. I just want to use sources from OpenJDK.
Does anyone know how acually Eclipse recognize source files and decide if the source is valid?