Skip to content

Commit

Permalink
* Fix issue with Loader.getCallerClass() when a SecurityManager
Browse files Browse the repository at this point in the history
…cannot be created (issue #176)
  • Loading branch information
saudet committed May 12, 2017
1 parent 217bcc2 commit 89e91f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

* Fix issue with `Loader.getCallerClass()` when a `SecurityManager` cannot be created ([issue #176](https://github.com/bytedeco/javacpp/issues/176))
* Make it possible to rename enumerators of C++ `enum class` ([issue #180](https://github.com/bytedeco/javacpp/issues/180))
* Make the arbitrary resources available to process executed with `Builder.buildCommand` via the `BUILD_PATH` environment variable
* Prevent `Parser` from outputting setters for `const` member pointers
* Add support for arrays of function pointers
* Let users bundle arbitrary resources, have them extracted in cache, and used as `include` or `link` paths ([pull #43](https://github.com/bytedeco/javacpp/pull/43))
* Fix potential formatting issues with `OutOfMemoryError` thrown from `Pointer`
* Fix `Loader.getCallerClass()` ([pull #175](https://github.com/bytedeco/javacpp/pull/175))
* Fix `Loader.getCallerClass()` not using the output from the `SecurityManager` ([pull #175](https://github.com/bytedeco/javacpp/pull/175))
* Fix `Parser` not considering empty `class`, `struct`, or `union` declarations as opaque forward declarations
* Provide `ByteIndexer` and `BytePointer` with value getters and setters for primitive types other than `byte` to facilitate unaligned memory accesses
* Add a `BuildMojo.buildCommand` parameter that lets users execute arbitrary system commands easily with `ProcessBuilder`
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/bytedeco/javacpp/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ public static Class getCallerClass(int i) {
return super.getClassContext();
}
}.getClassContext();
} catch (NoSuchMethodError e) {
logger.error("No definition of this method : " + e.getMessage());
} catch (NoSuchMethodError | SecurityException e) {
logger.warn("Could not create an instance of SecurityManager: " + e.getMessage());
}
if (classContext != null) {
for (int j = 0; j < classContext.length; j++) {
Expand Down

0 comments on commit 89e91f1

Please sign in to comment.