Skip to content

Commit c6c52b6

Browse files
committed
* Remove sun.misc.Unsafe config incompatible/unneeded with GraalVM Native Image 22.x (issue bytedeco/sample-projects#63)
1 parent 307eb90 commit c6c52b6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
* Remove `sun.misc.Unsafe` config incompatible/unneeded with GraalVM Native Image 22.x ([issue bytedeco/sample-projects#63](https://github.com/bytedeco/sample-projects/issues/63))
23
* Define default `SHARED_PTR_NAMESPACE`, `UNIQUE_PTR_NAMESPACE`, `OPTIONAL_NAMESPACE` to `std` on supported compilers ([issue #577](https://github.com/bytedeco/javacpp/issues/577))
34
* Let `Generator` treat `long` arguments and return values `@ByVal` or `@ByRef` with `@Cast("...*")` ([issue #576](https://github.com/bytedeco/javacpp/issues/576))
45
* Add `BytePointer.getUnsigned()` and `putUnsigned()` methods for convenience ([pull #574](https://github.com/bytedeco/javacpp/pull/574))

src/main/java/org/bytedeco/javacpp/tools/Generator.java

-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
import org.bytedeco.javacpp.annotation.ValueGetter;
9393
import org.bytedeco.javacpp.annotation.ValueSetter;
9494
import org.bytedeco.javacpp.annotation.Virtual;
95-
import sun.misc.Unsafe;
9695

9796
/**
9897
* The Generator is where all the C++ source code that we need gets generated.
@@ -1995,7 +1994,6 @@ boolean classes(boolean handleExceptions, boolean defineAdapters, boolean conver
19951994
reflectClasses.add(Object.class);
19961995
reflectClasses.add(Buffer.class);
19971996
reflectClasses.add(String.class);
1998-
reflectClasses.add(Unsafe.class);
19991997

20001998
for (Class cls : new LinkedHashSet<Class>(allClasses)) {
20011999
while ((cls = cls.getEnclosingClass()) != null) {
@@ -2009,7 +2007,6 @@ boolean classes(boolean handleExceptions, boolean defineAdapters, boolean conver
20092007
allClasses.add(IntEnum.class);
20102008
allClasses.add(LongEnum.class);
20112009
}
2012-
allClasses.add(Unsafe.class);
20132010

20142011
for (PrintWriter o : new PrintWriter[] {jniConfigOut, reflectConfigOut}) {
20152012
if (o == null) {

0 commit comments

Comments
 (0)