Skip to content

Releases: Karlatemp/UnsafeAccessor

1.7.0

09 Jul 12:45
de5d97c
Compare
Choose a tag to compare

Changelog

  • IMPORTANT: Fix security checking of UnsafeAccess.getInstance

    Affected version: >= 1.4.0 & < 1.7.0

  • Add Root.MethodHandleLookup for bytecode invokeDynamic executing
  • Add Unsafe.getOriginalUnsafe() to get sun.misc.Unsafe / jdk.internal.misc.Unsafe
  • Preview api for control --enable-native-access (ModuleAccess.isEnableNativeAccess)
  • Make BytecodeUtil public
  • Add ModuleAccess.getUnnamedModule(ClassLoader)
  • Try to use standard api to initialize UnsafeAccessor

Test Report

https://github.com/KasukuSakura/static-assets/blob/main/unsafe-accessor-release-test-report/1.7.0.md

1.6.2

15 Sep 15:58
1e01903
Compare
Choose a tag to compare

Changelog

Fix JDK17 Platform

Test Report

Gradle TaskTimeStatus
runTestUnit0PT0.49SSUCCESSFUL
runTestUnitAzul-15.0.2PT0.476SSUCCESSFUL
runTestUnitGraalvm-ce-java11-21.2.0PT1.328SSUCCESSFUL
runTestUnitGraalvm-ee-java16-21.2.0PT0.946SSUCCESSFUL
runTestUnitGraalvm-ee-java8-21.2.0PT0.408SSUCCESSFUL
runTestUnitJbrPT1.3SSUCCESSFUL
runTestUnitJdk-11.0.12.7-openj9PT1.195SSUCCESSFUL
runTestUnitJdk-11.0.8-fullPT1.248SSUCCESSFUL
runTestUnitJdk-11.0.9PT1.232SSUCCESSFUL
runTestUnitJdk-12.0.2.10-hotspotPT1.216SSUCCESSFUL
runTestUnitJdk-13.0.2PT1.23SSUCCESSFUL
runTestUnitJdk-14.0.2.12-hotspotPT0.41SSUCCESSFUL
runTestUnitJdk-15PT0.426SSUCCESSFUL
runTestUnitJdk-16PT0.478SSUCCESSFUL
runTestUnitJdk-16.0.1PT0.425SSUCCESSFUL
runTestUnitJdk-16.0.1+9PT0.442SSUCCESSFUL
runTestUnitJdk-17PT0.462SSUCCESSFUL
runTestUnitJdk1.8.0_181PT0.208SSUCCESSFUL
runTestUnitJdk1.8.0_252PT0.224SSUCCESSFUL
runTestUnitSapmachine-15.0.2PT0.469SSUCCESSFUL
Task unit runTestUnit0

status: SUCCESSFUL

time: PT0.49S

UnitTaskTimeStatus
<System Environment>PT0SSUCCESSFUL
Output of <System Environment>
Gradle Task Unit        : runTestUnit0
Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9Obj@3abfe836
Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9Obj
Runtime Spec Name       : Java Virtual Machine Specification
Runtime Spec Version    : 16
Runtime Spec Vendor     : Oracle Corporation
Runtime Vm   Name       : Java HotSpot(TM) 64-Bit Server VM
Runtime Vm   Version    : 16.0.1+9-24
Runtime Vm   Vendor     : Oracle Corporation
Is Java 9               : true
BinaryCompatibilityAnalysisPT0.113SSUCCESSFUL
BinaryCompatibilityAnalysisrunPT0.103SSUCCESSFUL
runtest.ModuleAccessTestPT0.198SSUCCESSFUL
runtest.ModuleAccessTestrunPT0.192SSUCCESSFUL
Output of run
UN: module testMod
ZPKG package io.kjg.ppkv.0032b472-9760-4c66-be2f-aae7d6d7732a
runtest.ModuleAccessTesttest methodsPT0.004SSUCCESSFUL
runtest.RootMethodHandleLookupTestPT0.002SSUCCESSFUL
runtest.RootMethodHandleLookupTestrunPT0.001SSUCCESSFUL
Output of run
Access: 127
Access: /trusted
runtest.TestObjectInitializerPT0.022SSUCCESSFUL
runtest.TestObjectInitializerrunPT0.021SSUCCESSFUL
runtest.TestUnsafePT0.015SSUCCESSFUL
runtest.TestUnsaferunTestPT0.008SSUCCESSFUL
Output of runTest
Invoking Unsafe Test Unit....
Testing Unsafe.get**, Unsafe.put**
Testing Unsafe.allocateInstance
Testing Unsafe Memory Access
Checking Unsafe.throwException
Testing Unsafe.ensureClassInitialized
runtest.TestUnsafecheck set accessiblePT0.003SSUCCESSFUL
Output of check set accessible
Checking AccessibleObject.setAccessible
false
protected void java.net.URLClassLoader.addURL(java.net.URL)
true
runtest.TestUnsafecheck Unsafe.defineClassPT0.001SSUCCESSFUL
Output of check Unsafe.defineClass
Checking class defining
AnonymousClass: class testSwe.AWZXaex/0x0000000800c23800
runtest.TestUnsafecheck Root.getTrusted()PT0SSUCCESSFUL
Task unit runTestUnitAzul-15.0.2

status: SUCCESSFUL

time: PT0.476S

UnitTaskTimeStatus
<System Environment>PT0SSUCCESSFUL
Output of <System Environment>
Gradle Task Unit        : runTestUnitAzul-15.0.2
Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9Obj@2f410acf
Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9Obj
Runtime Spec Name       : Java Virtual Machine Specification
Runtime Spec Version    : 15
Runtime Spec Vendor     : Oracle Corporation
Runtime Vm   Name       : OpenJDK 64-Bit Server VM
Runtime Vm   Version    : 15.0.2+7
Runtime Vm   Vendor     : Azul Systems, Inc.
Is Java 9               : true
BinaryCompatibilityAnalysisPT0.128SSUCCESSFUL
BinaryCompatibilityAnalysisrunPT0.117SSUCCESSFUL
runtest.ModuleAccessTestPT0.174SSUCCESSFUL
runtest.ModuleAccessTestrunPT0.169SSUCCESSFUL
Output of run
UN: module testMod
ZPKG package io.kjg.ppkv.d572a057-339a-45a6-8a39-97492b2eabe7
runtest.ModuleAccessTesttest methodsPT0.003SSUCCESSFUL
runtest.RootMethodHandleLookupTestPT0.001SSUCCESSFUL
runtest.RootMethodHandleLookupTestrunPT0SSUCCESSFUL
Output of run
Access: 63
Access: /trusted
runtest.TestObjectInitializerPT0.022SSUCCESSFUL
runtest.TestObjectInitializerrunPT0.021SSUCCESSFUL
runtest.TestUnsafePT0.01SSUCCESSFUL
runtest.TestUnsafecheck Root.getTrusted()PT0SSUCCESSFUL
runtest.TestUnsafecheck Unsafe.defineClassPT0.002SSUCCESSFUL
Output of check Unsafe.defineClass
Checking class defining
AnonymousClass: class testSwe.AWZXaex/0x0000000800bd4040
runtest.TestUnsaferunTestPT0.003SSUCCESSFUL
Output of runTest
Invoking Unsafe Test Unit....
Testing Unsafe.get**, Unsafe.put**
Testing Unsafe.allocateInstance
Testing Unsafe Memory Access
Checking Unsafe.throwException
Testing Unsafe.ensureClassInitialized
runtest.TestUnsafecheck set accessiblePT0.003SSUCCESSFUL
Output of check set accessible
Checking AccessibleObject.setAccessible
false
protected void java.net.URLClassLoader.addURL(java.net.URL)
true
Task unit runTestUnitGraalvm-ce-java11-21.2.0

status: SUCCESSFUL

time: PT1.328S

UnitTaskTimeStatus
<System Environment>PT0SSUCCESSFUL
Output of <System Environment>
Gradle Task Unit        : runTestUnitGraalvm-ce-java11-21.2.0
Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9Obj@52d455b8
Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9Obj
Runtime Spec Name       : Java Virtual Machine Specification
Runtime Spec Version    : 11
Runtime Spec Vendor     : Oracle Corporation
Runtime Vm   Name       : OpenJDK 64-Bit Server VM
Runtime Vm   Version    : 11.0.12+6-jvmci-21.2-b08
Runtime Vm   Vendor     : GraalVM Community
Is Java 9               : true
BinaryCompatibilityAnalysisPT0.177SSUCCESSFUL
BinaryCompatibilityAnalysisrunPT0.152SSUCCESSFUL
runtest.ModuleAccessTestPT0.95SSUCCESSFUL
runtest.ModuleAccessTestrunPT0.946SSUCCESSFUL
Output of run
UN: module testMod
ZPKG package io.kjg.ppkv.b2068e7c-8e7a-4060-8933-e852e3221a43
runtest.ModuleAccessTesttest methodsPT0.003SSUCCESSFUL
runtest.RootMethodHandleLookupTest...
Read more

1.6.1

30 Aug 12:19
26827f4
Compare
Choose a tag to compare

Changelog

  • Support Eclipse OpenJ9 VM - 11.0.12.7-openj9
  • Fix UnsafeAccess.getInstance().getModuleAccess() returning null

Test Report

Gradle TaskTimeStatus
runTestUnit0PT0.555SSUCCESSFUL
runTestUnitAzul-15.0.2PT0.551SSUCCESSFUL
runTestUnitGraalvm-ce-java11-21.2.0PT2.023SSUCCESSFUL
runTestUnitGraalvm-ee-java16-21.2.0PT0.662SSUCCESSFUL
runTestUnitGraalvm-ee-java8-21.2.0PT0.275SSUCCESSFUL
runTestUnitJbrPT1.254SSUCCESSFUL
runTestUnitJdk-11.0.12.7-openj9PT1.196SSUCCESSFUL
runTestUnitJdk-11.0.8-fullPT1.282SSUCCESSFUL
runTestUnitJdk-11.0.9PT1.247SSUCCESSFUL
runTestUnitJdk-12.0.2.10-hotspotPT1.324SSUCCESSFUL
runTestUnitJdk-13.0.2PT1.22SSUCCESSFUL
runTestUnitJdk-14.0.2.12-hotspotPT0.405SSUCCESSFUL
runTestUnitJdk-15PT0.498SSUCCESSFUL
runTestUnitJdk-16PT0.438SSUCCESSFUL
runTestUnitJdk-16.0.1PT0.498SSUCCESSFUL
runTestUnitJdk-16.0.1+9PT0.456SSUCCESSFUL
runTestUnitJdk1.8.0_181PT0.217SSUCCESSFUL
runTestUnitJdk1.8.0_252PT0.203SSUCCESSFUL
runTestUnitSapmachine-15.0.2PT0.446SSUCCESSFUL
Task unit runTestUnit0

status: SUCCESSFUL

time: PT0.555S

UnitTaskTimeStatus
<System Environment>PT0SSUCCESSFUL
Output of <System Environment>
Gradle Task Unit        : runTestUnit0
Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9@6bc168e5
Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9
Runtime Spec Name       : Java Virtual Machine Specification
Runtime Spec Version    : 14
Runtime Spec Vendor     : Oracle Corporation
Runtime Vm   Name       : OpenJDK 64-Bit Server VM
Runtime Vm   Version    : 14.0.2+12
Runtime Vm   Vendor     : AdoptOpenJDK
Is Java 9               : true
BinaryCompatibilityAnalysisPT0.128SSUCCESSFUL
BinaryCompatibilityAnalysisrunPT0.119SSUCCESSFUL
runtest.ModuleAccessTestPT0.254SSUCCESSFUL
runtest.ModuleAccessTestrunPT0.25SSUCCESSFUL
Output of run
UN: module testMod
ZPKG package io.kjg.ppkv.50093669-341b-4b7c-a67b-012238ca6ffe
runtest.ModuleAccessTesttest methodsPT0.003SSUCCESSFUL
runtest.RootMethodHandleLookupTestPT0.004SSUCCESSFUL
runtest.RootMethodHandleLookupTestrunPT0.001SSUCCESSFUL
Output of run
Access: 63
Access: /trusted
runtest.TestObjectInitializerPT0.027SSUCCESSFUL
runtest.TestObjectInitializerrunPT0.025SSUCCESSFUL
runtest.TestUnsafePT0.017SSUCCESSFUL
runtest.TestUnsafecheck Root.getTrusted()PT0SSUCCESSFUL
runtest.TestUnsafecheck Unsafe.defineClassPT0.004SSUCCESSFUL
Output of check Unsafe.defineClass
Checking class defining
AnonymousClass: class testSwe.AWZXaex/0x0000000800bb9840
runtest.TestUnsaferunTestPT0.004SSUCCESSFUL
Output of runTest
Invoking Unsafe Test Unit....
Testing Unsafe.get**, Unsafe.put**
Testing Unsafe.allocateInstance
Testing Unsafe Memory Access
Checking Unsafe.throwException
Testing Unsafe.ensureClassInitialized
runtest.TestUnsafecheck set accessiblePT0.006SSUCCESSFUL
Output of check set accessible
Checking AccessibleObject.setAccessible
false
protected void java.net.URLClassLoader.addURL(java.net.URL)
true
Task unit runTestUnitAzul-15.0.2

status: SUCCESSFUL

time: PT0.551S

UnitTaskTimeStatus
<System Environment>PT0SSUCCESSFUL
Output of <System Environment>
Gradle Task Unit        : runTestUnitAzul-15.0.2
Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9@136432db
Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9
Runtime Spec Name       : Java Virtual Machine Specification
Runtime Spec Version    : 15
Runtime Spec Vendor     : Oracle Corporation
Runtime Vm   Name       : OpenJDK 64-Bit Server VM
Runtime Vm   Version    : 15.0.2+7
Runtime Vm   Vendor     : Azul Systems, Inc.
Is Java 9               : true
BinaryCompatibilityAnalysisPT0.173SSUCCESSFUL
BinaryCompatibilityAnalysisrunPT0.162SSUCCESSFUL
runtest.ModuleAccessTestPT0.193SSUCCESSFUL
runtest.ModuleAccessTestrunPT0.19SSUCCESSFUL
Output of run
UN: module testMod
ZPKG package io.kjg.ppkv.a1b70269-7148-41fd-ac94-31ece9f63e44
runtest.ModuleAccessTesttest methodsPT0.002SSUCCESSFUL
runtest.RootMethodHandleLookupTestPT0.002SSUCCESSFUL
runtest.RootMethodHandleLookupTestrunPT0.001SSUCCESSFUL
Output of run
Access: 63
Access: /trusted
runtest.TestObjectInitializerPT0.026SSUCCESSFUL
runtest.TestObjectInitializerrunPT0.024SSUCCESSFUL
runtest.TestUnsafePT0.012SSUCCESSFUL
runtest.TestUnsafecheck Root.getTrusted()PT0SSUCCESSFUL
runtest.TestUnsaferunTestPT0.006SSUCCESSFUL
Output of runTest
Invoking Unsafe Test Unit....
Testing Unsafe.get**, Unsafe.put**
Testing Unsafe.allocateInstance
Testing Unsafe Memory Access
Checking Unsafe.throwException
Testing Unsafe.ensureClassInitialized
runtest.TestUnsafecheck set accessiblePT0.003SSUCCESSFUL
Output of check set accessible
Checking AccessibleObject.setAccessible
false
protected void java.net.URLClassLoader.addURL(java.net.URL)
true
runtest.TestUnsafecheck Unsafe.defineClassPT0SSUCCESSFUL
Output of check Unsafe.defineClass
Checking class defining
AnonymousClass: class testSwe.AWZXaex/0x0000000800bd2840
Task unit runTestUnitGraalvm-ce-java11-21.2.0

status: SUCCESSFUL

time: PT2.023S

UnitTaskTimeStatus
<System Environment>PT0SSUCCESSFUL
Output of <System Environment>
Gradle Task Unit        : runTestUnitGraalvm-ce-java11-21.2.0
Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9Obj@5f5a92bb
Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9Obj
Runtime Spec Name       : Java Virtual Machine Specification
Runtime Spec Version    : 11
Runtime Spec Vendor     : Oracle Corporation
Runtime Vm   Name       : OpenJDK 64-Bit Server VM
Runtime Vm   Version    : 11.0.12+6-jvmci-21.2-b08
Runtime Vm   Vendor     : GraalVM Community
Is Java 9               : true
BinaryCompatibilityAnalysisPT0.383SSUCCESSFUL
BinaryCompatibilityAnalysisrunPT0.297SSUCCESSFUL
runtest.ModuleAccessTestPT1.343SSUCCESSFUL
runtest.ModuleAccessTestrunPT1.297SSUCCESSFUL
Output of run
UN: module testMod
ZPKG package io.kjg.ppkv.e4df0457-b126-4151-a073-f7baf0615292
runtest.ModuleAccessTesttest methodsPT0.044SSUCCESSFUL
runtest.RootMethodHandleLookupTes...
Read more

1.6.0

13 Jun 09:21
2e3e9ae
Compare
Choose a tag to compare
  • Add ModuleAccess.getEVERYONE_MODULE & getALL_UNNAMED_MODULE
  • Update SecurityCheck logic for JDK 17 SecurityManager deprecated
Test Results
Gradle task: runTestUnit0

<Unsafe Accessor Testing Unit>                                       PT0.402S  SUCCESSFUL
    <System Environment>                                             PT0S      SUCCESSFUL
      Gradle Task Unit        : runTestUnit0
      Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9@7a7b0070
      Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9
      Runtime Spec Name       : Java Virtual Machine Specification
      Runtime Spec Version    : 14
      Runtime Spec Vendor     : Oracle Corporation
      Runtime Vm   Name       : OpenJDK 64-Bit Server VM
      Runtime Vm   Version    : 14.0.2+12
      Runtime Vm   Vendor     : AdoptOpenJDK
      Is Java 9               : true
    io.github.karlatemp.unsafeaccessor.BinaryCompatibilityAnalysis   PT0.134S  SUCCESSFUL
        run                                                          PT0.124S  SUCCESSFUL
    runtest.ModuleAccessTest                                         PT0.119S  SUCCESSFUL
        run                                                          PT0.115S  SUCCESSFUL
        test methods                                                 PT0.003S  SUCCESSFUL
    runtest.RootMethodHandleLookupTest                               PT0.002S  SUCCESSFUL
        run                                                          PT0S      SUCCESSFUL
    runtest.TestObjectInitializer                                    PT0.035S  SUCCESSFUL
        run                                                          PT0.033S  SUCCESSFUL
    runtest.TestUnsafe                                               PT0.014S  SUCCESSFUL
        check Root.getTrusted()                                      PT0.001S  SUCCESSFUL
        check set accessible                                         PT0.006S  SUCCESSFUL
        check Unsafe.defineClass                                     PT0.003S  SUCCESSFUL
        runTest                                                      PT0.002S  SUCCESSFUL

===============================================

Gradle task: runTestUnitAzul-15.0.2

<Unsafe Accessor Testing Unit>                                       PT0.408S  SUCCESSFUL
    <System Environment>                                             PT0S      SUCCESSFUL
      Gradle Task Unit        : runTestUnitAzul-15.0.2
      Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9@6ed3ef1
      Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9
      Runtime Spec Name       : Java Virtual Machine Specification
      Runtime Spec Version    : 15
      Runtime Spec Vendor     : Oracle Corporation
      Runtime Vm   Name       : OpenJDK 64-Bit Server VM
      Runtime Vm   Version    : 15.0.2+7
      Runtime Vm   Vendor     : Azul Systems, Inc.
      Is Java 9               : true
    io.github.karlatemp.unsafeaccessor.BinaryCompatibilityAnalysis   PT0.136S  SUCCESSFUL
        run                                                          PT0.128S  SUCCESSFUL
    runtest.ModuleAccessTest                                         PT0.131S  SUCCESSFUL
        run                                                          PT0.127S  SUCCESSFUL
        test methods                                                 PT0.002S  SUCCESSFUL
    runtest.RootMethodHandleLookupTest                               PT0.002S  SUCCESSFUL
        run                                                          PT0.001S  SUCCESSFUL
    runtest.TestObjectInitializer                                    PT0.022S  SUCCESSFUL
        run                                                          PT0.021S  SUCCESSFUL
    runtest.TestUnsafe                                               PT0.017S  SUCCESSFUL
        check Root.getTrusted()                                      PT0S      SUCCESSFUL
        runTest                                                      PT0.006S  SUCCESSFUL
        check set accessible                                         PT0.004S  SUCCESSFUL
        check Unsafe.defineClass                                     PT0.001S  SUCCESSFUL

===============================================

Gradle task: runTestUnitJbr

<Unsafe Accessor Testing Unit>                                       PT0.982S  SUCCESSFUL
    <System Environment>                                             PT0S      SUCCESSFUL
      Gradle Task Unit        : runTestUnitJbr
      Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9Obj@3108bc
      Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9Obj
      Runtime Spec Name       : Java Virtual Machine Specification
      Runtime Spec Version    : 11
      Runtime Spec Vendor     : Oracle Corporation
      Runtime Vm   Name       : Dynamic Code Evolution 64-Bit Server VM
      Runtime Vm   Version    : 11.0.11+9-b1341.57
      Runtime Vm   Vendor     : JetBrains s.r.o.
      Is Java 9               : true
    io.github.karlatemp.unsafeaccessor.BinaryCompatibilityAnalysis   PT0.16S   SUCCESSFUL
        run                                                          PT0.141S  SUCCESSFUL
    runtest.ModuleAccessTest                                         PT0.655S  SUCCESSFUL
        run                                                          PT0.649S  SUCCESSFUL
        test methods                                                 PT0.004S  SUCCESSFUL
    runtest.RootMethodHandleLookupTest                               PT0.002S  SUCCESSFUL
        run                                                          PT0.001S  SUCCESSFUL
    runtest.TestObjectInitializer                                    PT0.022S  SUCCESSFUL
        run                                                          PT0.022S  SUCCESSFUL
    runtest.TestUnsafe                                               PT0.008S  SUCCESSFUL
        check Root.getTrusted()                                      PT0S      SUCCESSFUL
        runTest                                                      PT0.006S  SUCCESSFUL
        check set accessible                                         PT0S      SUCCESSFUL
        check Unsafe.defineClass                                     PT0S      SUCCESSFUL

===============================================

Gradle task: runTestUnitJdk-11.0.8-full

<Unsafe Accessor Testing Unit>                                       PT0.918S  SUCCESSFUL
    <System Environment>                                             PT0S      SUCCESSFUL
      Gradle Task Unit        : runTestUnitJdk-11.0.8-full
      Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9Obj@4b4523f8
      Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9Obj
      Runtime Spec Name       : Java Virtual Machine Specification
      Runtime Spec Version    : 11
      Runtime Spec Vendor     : Oracle Corporation
      Runtime Vm   Name       : OpenJDK 64-Bit Server VM
      Runtime Vm   Version    : 11.0.8+10-LTS
      Runtime Vm   Vendor     : BellSoft
      Is Java 9               : true
    io.github.karlatemp.unsafeaccessor.BinaryCompatibilityAnalysis   PT0.14S   SUCCESSFUL
        run                                                          PT0.128S  SUCCESSFUL
    runtest.ModuleAccessTest                                         PT0.618S  SUCCESSFUL
        run                                                          PT0.613S  SUCCESSFUL
        test methods                                                 PT0.004S  SUCCESSFUL
    runtest.RootMethodHandleLookupTest                               PT0.002S  SUCCESSFUL
        run                                                          PT0.001S  SUCCESSFUL
    runtest.TestObjectInitializer                                    PT0.023S  SUCCESSFUL
        run                                                          PT0.022S  SUCCESSFUL
    runtest.TestUnsafe                                               PT0.007S  SUCCESSFUL
        check Root.getTrusted()                                      PT0.001S  SUCCESSFUL
        check Unsafe.defineClass                                     PT0.002S  SUCCESSFUL
        runTest                                                      PT0.003S  SUCCESSFUL
        check set accessible                                         PT0S      SUCCESSFUL

===============================================

Gradle task: runTestUnitJdk-11.0.9

<Unsafe Accessor Testing Unit>                                       PT0.904S  SUCCESSFUL
    <System Environment>                                             PT0S      SUCCESSFUL
      Gradle Task Unit        : runTestUnitJdk-11.0.9
      Unsafe instance         : io.github.karlatemp.unsafeaccessor.Impl9Obj@210366b4
      Unsafe instance class   : class io.github.karlatemp.unsafeaccessor.Impl9Obj
      Runtime Spec Name       : Java Virtual Machine Specification
      Runtime Spec Version    : 11
      Runtime Spec Vendor     : Oracle Corporation
      Runtime Vm   Name       : Java HotSpot(TM) 64-Bit Server VM
      Runtime Vm   Version    : 11.0.9+7-LTS
      Runtime Vm   Vendor     : Oracle Corporation
      Is Java 9               : true
    io.github.karlatemp.unsafeaccessor.BinaryCompatibilityAnalysis   PT0.123S  SUCCESSFUL
        run                                                          PT0.115S  SUCCESSFUL
    runtest.ModuleAccessTest                                         PT0.624S  SUCCESSFUL
        run                                                          PT0.619S  SUCCESSFUL
        test methods                                                 PT0.003S  SUCCESSFUL
    runtest.RootMethodHandleLookupTest                               PT0.003S  SUCCESSFUL
    ...
Read more

1.4.0

16 Mar 14:42
aa4c1c4
Compare
Choose a tag to compare

Fix MethodHandles.Lookup.IMPL_LOOKUP access
Add access bridge (No security manager check)

1.2.2

05 Feb 00:45
e79d8f9
Compare
Choose a tag to compare
Merge remote-tracking branch 'origin/master'