Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
In TypesTest, change the check for correct functioning in the presenc…
…e of a SecurityManager. Previously we had a SecurityManager that refused Method.setAccessible except in a few well-known places, the intent being that one of the places it would refuse would be the use in Types.TypeVariableInvocationHandler that we wanted to test. But that proved to be fragile. Instead, we explicitly refuse that place, and we check that the refusal happened. This builds more knowledge of the implementation into the test, but should be more robust. ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=94699561
- Loading branch information
1 parent
cc9a685
commit cc65b4f
Showing
1 changed file
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters