Skip to content

Commit

Permalink
JNAerator: Generate Android-friendly code for direct mapping
Browse files Browse the repository at this point in the history
Avoid error “The SecurityManager implementation on this platform is broken; you must explicitly provide the class to register” due to stub SecurityManager on Android as described in java-native-access/jna#218 .
  • Loading branch information
cwalther committed Jul 30, 2013
1 parent 7ef493f commit e8b9e9b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,7 @@ public void generateLibraryFiles(SourceFiles sourceFiles, Result result, JNAerat
expr(typeRef(Native.class)),
Expression.MemberRefStyle.Dot,
"register",
memberRef(expr(libTypeRef.clone()), MemberRefStyle.Dot, ident("class")),
libraryNameFieldExpr.clone())))).addModifiers(ModifierType.Static));
} else {
Expression[] loadLibArgs = isJNAerator
Expand Down

0 comments on commit e8b9e9b

Please sign in to comment.