commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <>
Subject [lang] Running lang under a security manager and LANG-744
Date Fri, 02 Sep 2011 00:20:32 GMT
WRT LANG-744 "StringUtils throws on
Google App Engine"

Well, I've ruminated, pondered and experimented.

Running all unit tests with a security managers results in:

Tests run: 2046, Failures: 2, Errors: 115, Skipped: 0

Clearly, we need a good overall solution to avoid 117 new Jiras (an
exaggeration I know.)

I've created a JAAS policy file to grant just enough permissions to run the
unit tests in {{src/test/resource/java.policy}}

The file contains instructions for using it with JAAS.

What this shows is that we should either:

# Run all unit tests a second time with JAAS enabled, or
# Run all unit tests with JAAS enabled, always

We should our solution as a pattern for other Commons component.

Specifically for StringUtils, should we have a SunStringUtils? This would
let you know that you are depending on com.sun code.


Thank you,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message