Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)