Project: Tomcat
Bug 49102 coyote.ajp.Constants - 3 "constant" arrays are mutable
Reported: 2010-04-12 16:11:37 | Status: resolved fixed

The class coyote.ajp.Constants contains 3 public static non-empty String[] arrays: methodTransArray responseTransArray headerTransArray responseTransArray only appears to be locally, so could be made private. The others are used in index lookups, so get(index) methods could be used to protect them.

Files changed in fix:
java/org/apache/coyote/ajp/AjpAprProcessor.java java/org/apache/coyote/ajp/AjpProcessor.java java/org/apache/coyote/ajp/Constants.java