From 34b5f1c5043a51115e7df37f4b5ae763a39fe4dc Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sat, 14 Nov 2015 12:09:02 +0100 Subject: [PATCH] Cleanups for PR #86: Fix file name, change error message a bit --- .../signatures/jdk-reflection.txt | 6 ++++-- src/test/antunit/Java6Reflection.class | Bin 1084 -> 1085 bytes src/test/antunit/TestJava6Reflection.xml | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-reflection.txt b/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-reflection.txt index 4010807d..be3c1063 100644 --- a/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-reflection.txt +++ b/src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-reflection.txt @@ -14,5 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -java.lang.reflect.AccessibleObject#setAccessible(java.lang.reflect.AccessibleObject[], boolean) @ Reflection usage fails with SecurityManagers and likely will not work any more in Java 9 -java.lang.reflect.AccessibleObject#setAccessible(boolean) @ Reflection usage fails with SecurityManagers and likely will not work any more in Java 9 +@defaultMessage Reflection usage to work around access flags fails with SecurityManagers and likely will not work anymore on runtime classes in Java 9 + +java.lang.reflect.AccessibleObject#setAccessible(java.lang.reflect.AccessibleObject[], boolean) +java.lang.reflect.AccessibleObject#setAccessible(boolean) diff --git a/src/test/antunit/Java6Reflection.class b/src/test/antunit/Java6Reflection.class index 91eb84318465396b9f6866253cbe7e08c42d3a31..1c45999fe84060c4f561751dd9d95271841bb845 100644 GIT binary patch delta 81 zcmdnPv6o{*Ix}|%12YgZFc=9lOfF=0G-Y9sX5eO!VGv-D1G3~96oAlxL5V>as73*( cl7&H!L4rXN$m3>EXOIG_VPue={G2%y0Jg{pEdT%j delta 80 zcmdnXv4>+rIx|;012YgZFc=C=E@E~xWoD3O;9`(r;AfCykYbPrLInnW1|5!F$p37 diff --git a/src/test/antunit/TestJava6Reflection.xml b/src/test/antunit/TestJava6Reflection.xml index 5294db66..09e932f1 100644 --- a/src/test/antunit/TestJava6Reflection.xml +++ b/src/test/antunit/TestJava6Reflection.xml @@ -20,10 +20,10 @@ - + - +