Skip to content

Commit

Permalink
Merge pull request #79 from jtnord/JENKINS-33999
Browse files Browse the repository at this point in the history
[JENKINS-33999] Do not blacklist Spring’s Exceptions
  • Loading branch information
oleg-nenashev committed Apr 5, 2016
2 parents 7cb4138 + 39a83a1 commit a86a27d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/hudson/remoting/ClassFilter.java
Expand Up @@ -60,7 +60,7 @@ public final Class check(Class c) {
".*org[.]apache[.]xalan.*",
"^org[.]codehaus[.]groovy[.]runtime[.].*",
"^org[.]hibernate[.].*",
"^org[.]springframework[.].*",
"^org[.]springframework[.](?!(\\p{Alnum}+[.])*\\p{Alnum}*Exception$).*",
"^sun[.]rmi[.].*",
};

Expand Down
6 changes: 4 additions & 2 deletions src/test/java/hudson/remoting/DefaultClassFilterTest.java
Expand Up @@ -48,10 +48,12 @@ public class DefaultClassFilterTest {
/** Some classes that should be matched by the default class filter */
private static final List<String> defaultBadClasses = Arrays.asList("org.codehaus.groovy.runtime.Bob",
"org.apache.commons.collections.functors.Wibble", "org.apache.xalan.Bogus",
"com.sun.org.apache.xalan.bogus");
"com.sun.org.apache.xalan.bogus", "org.springframework.core.SomeClass",
"org.springframework.wibble.ExceptionHandler");
/** Some classes that should not be matched by the default class filter */
private static final List<String> defaultOKClasses = Arrays.asList("java.lang.String", "java.lang.Object",
"java.util.ArrayList");
"java.util.ArrayList", "org.springframework.core.NestedRuntimeException",
"org.springframework.a.b.c.yada.SomeSuperException");

@Rule
public TemporaryFolder folder = new TemporaryFolder();
Expand Down

0 comments on commit a86a27d

Please sign in to comment.