JVM_FindClassFromCaller appears to work quite similar to JVM_FindClassFromClassLoader with the twist that the protection domain that belongs to the caller class argument shall be used during the lookup of the class.
This implements JVM_FindClassFromCaller for cacao with this obvious TODO:
/* XXX The caller's protection domain should be used duringthe load_class_from_classloader but there is no specification orunit-test in OpenJDK documenting the desired effect */java-cacao-versionjavaversion"1.7.0_65"IcedTeaRuntimeEnvironment(IcedTea2.5.3)(7u71-2.5.3-0ubuntu0.14.04.1)CACAO(build1.6.2pre+rea3c9a40d975,compiledmode)
Thanks! I'm uneasy with including the javadoc parts because of legal issues. I will recreate the code parts though.