Skip to content

Commit

Permalink
Cleanups for PR #86: Fix file name, change error message a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
uschindler committed Nov 14, 2015
1 parent b9ea33e commit 34b5f1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Binary file modified src/test/antunit/Java6Reflection.class
Binary file not shown.
4 changes: 2 additions & 2 deletions src/test/antunit/TestJava6Reflection.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
<au:expectfailure expectedMessage="Check for forbidden API calls failed, see log">
<forbiddenapis>
<bundledsignatures name="jdk-reflection"/>
<file file="OracleReflection.class"/>
<file file="Java6Reflection.class"/>
</forbiddenapis>
</au:expectfailure>
<au:assertLogContains level="error" text="java.lang.reflect.AccessibleObject#setAccessible(boolean) [Reflection usage fails with SecurityManagers"/>
<au:assertLogContains level="error" text="java.lang.reflect.AccessibleObject#setAccessible(boolean) [Reflection usage to work around access flags"/>
<au:assertLogContains level="error" text=" 2 error(s)"/>
</target>

Expand Down

0 comments on commit 34b5f1c

Please sign in to comment.