Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karlatemp/unsafeaccessor
A bridge to access sun.misc.Unsafe & jdk.internal.misc.Unsafe
https://github.com/karlatemp/unsafeaccessor
java jdk jvm reflect reflection security tool tools unsafe
Last synced: about 1 month ago
JSON representation
A bridge to access sun.misc.Unsafe & jdk.internal.misc.Unsafe
- Host: GitHub
- URL: https://github.com/karlatemp/unsafeaccessor
- Owner: Karlatemp
- License: mit
- Created: 2020-09-25T05:26:14.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-14T06:31:48.000Z (over 2 years ago)
- Last Synced: 2024-10-13T04:21:18.053Z (about 1 month ago)
- Topics: java, jdk, jvm, reflect, reflection, security, tool, tools, unsafe
- Language: Java
- Homepage: https://karlatemp.github.io/blog-me/reflect/0.index.html
- Size: 281 KB
- Stars: 22
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unsafe Accessor
Here is a bridge to access Unsafe ( `sun.misc.Unsafe` and `jdk.internal.misc.Unsafe` ).
UnsafeAccessor is available on MavenCentral
## Use
```groovy
dependencies {
compile("io.github.karlatemp:unsafe-accessor:1.7.0")
}
``````xml
io.github.karlatemp
unsafe-accessor
1.7.0```
## Build
1. Clone this project
2. Open with IDEA
3. Select `Import Gradle Project`. Then wait...
4. Open `Project Structure... > Project Settings > Project`.
Select Project SDK `JDK 9+`
5. Open `Settings > Build, Execution, Deployment > Build Tools > Gradle`.
Change `Gradle JVM` to `Project JDK`
6. Run Gradle task `:impl.testunit:doBuild`
7. Get output artifact in `impl/loader/build/libs`# Use example
[TestUnsafe.java](./impl/testunit/src/main/java/runtest/TestUnsafe.java)