Fixed errors for java 6
This commit is contained in:
parent
580eff8691
commit
ac0bc48591
|
@ -131,7 +131,7 @@ public class ClassLoaderUtil {
|
|||
* @param className the name to check
|
||||
*/
|
||||
public static
|
||||
boolean isClassLoaded(ClassLoader classLoader, String className) {
|
||||
boolean isClassLoaded(final ClassLoader classLoader, final String className) {
|
||||
// Pointer javaEnv = getJavaEnv();
|
||||
//
|
||||
// NativeLibrary library = ((Library.Handler) libjvm).getNativeLibrary();
|
||||
|
|
|
@ -128,12 +128,13 @@ class SwtDispatch {
|
|||
return false;
|
||||
}
|
||||
|
||||
final Class<?> clazz = osClass;
|
||||
Method method = AccessController.doPrivileged(new PrivilegedAction<Method>() {
|
||||
@Override
|
||||
public
|
||||
Method run() {
|
||||
try {
|
||||
return osClass.getMethod("gtk_major_version");
|
||||
return clazz.getMethod("gtk_major_version");
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user