tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47612] New: [PATCH] fix unsafe public string array in AbstractCreateStatementInterceptor
Date Fri, 31 Jul 2009 01:21:38 GMT

           Summary: [PATCH] fix unsafe public string array in
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Modules: jdbc-pool

Created an attachment (id=24070)
 --> (
Protect array against changes; remove "magic" numbers

As previously mentioned on the Tomcat-dev list, the
AbstractCreateStatementInterceptor class has two public static String arrays.

These can easily be changed accidentally or deliberately.
There subclasses which use the arrays also depend on the order of the entries
in the arrays.

The patch makes the arrays private, and makes the array order explicit,
eliminating the "magic" numbers currently used to access the array entries.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message