tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49101] New: All constants in tribes.transport.Constants are mutable
Date Mon, 12 Apr 2010 20:01:12 GMT

           Summary: All constants in tribes.transport.Constants are
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina

The "constant" fields in tribes.transport.Constants are defined as non-empty
public static final byte arrays, so are not actually immutable.

The _DATA fields only appear to be used in Arrays.equals method calls, so the
array comparison could be moved to the Constants class.

The _COMMAND fields are a bit more difficult to protect, but there could be a
getter that returned a copy of the array.

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