Skip to content

Commit 34b5f1c

Browse files
committed
Cleanups for PR #86: Fix file name, change error message a bit
1 parent b9ea33e commit 34b5f1c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/main/resources/de/thetaphi/forbiddenapis/signatures/jdk-reflection.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
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
18-
java.lang.reflect.AccessibleObject#setAccessible(boolean) @ Reflection usage fails with SecurityManagers and likely will not work any more in Java 9
17+
@defaultMessage Reflection usage to work around access flags fails with SecurityManagers and likely will not work anymore on runtime classes in Java 9
18+
19+
java.lang.reflect.AccessibleObject#setAccessible(java.lang.reflect.AccessibleObject[], boolean)
20+
java.lang.reflect.AccessibleObject#setAccessible(boolean)
1 Byte
Binary file not shown.

src/test/antunit/TestJava6Reflection.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
<au:expectfailure expectedMessage="Check for forbidden API calls failed, see log">
2121
<forbiddenapis>
2222
<bundledsignatures name="jdk-reflection"/>
23-
<file file="OracleReflection.class"/>
23+
<file file="Java6Reflection.class"/>
2424
</forbiddenapis>
2525
</au:expectfailure>
26-
<au:assertLogContains level="error" text="java.lang.reflect.AccessibleObject#setAccessible(boolean) [Reflection usage fails with SecurityManagers"/>
26+
<au:assertLogContains level="error" text="java.lang.reflect.AccessibleObject#setAccessible(boolean) [Reflection usage to work around access flags"/>
2727
<au:assertLogContains level="error" text=" 2 error(s)"/>
2828
</target>
2929

0 commit comments

Comments
 (0)