You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/07/18 15:03:37 UTC

[Bug 53565] New: deprecated

https://issues.apache.org/bugzilla/show_bug.cgi?id=53565

          Priority: P2
            Bug ID: 53565
          Assignee: dev@tomcat.apache.org
           Summary: deprecated
          Severity: minor
    Classification: Unclassified
          Reporter: riccardoprandini01@gmail.com
          Hardware: PC
            Status: NEW
           Version: unspecified
         Component: jdbc-pool
           Product: Tomcat Modules

\org\apache\tomcat\jdbc\pool\interceptor\SlowQueryReport.java:300: warning:
[deprecation] toGMTString() in Date has been deprecated
            buf.append(new java.util.Date(maxInvocationDate).toGMTString());

\org\apache\tomcat\jdbc\pool\interceptor\SlowQueryReport.java:305: warning:
[deprecation] toGMTString() in Date has been deprecated
            buf.append(new java.util.Date(minInvocationDate).toGMTString());



to solve a possible solution is:



public String toString() {
            DateFormat df = new SimpleDateFormat("dd MMM yyyy kk:mm:ss z");
            df.setTimeZone(TimeZone.getTimeZone("GMT"));

            StringBuilder buf = new StringBuilder("QueryStats[query:");
            buf.append(query);
            buf.append(", nrOfInvocations:");
            buf.append(nrOfInvocations);
            buf.append(", maxInvocationTime:");
            buf.append(maxInvocationTime);
            buf.append(", maxInvocationDate:");
            //buf.append(new java.util.Date(maxInvocationDate).toGMTString());
            buf.append(df.format(new java.util.Date(maxInvocationDate)));
            buf.append(", minInvocationTime:");
            buf.append(minInvocationTime);
            buf.append(", minInvocationDate:");
            //buf.append(new java.util.Date(minInvocationDate).toGMTString());
            buf.append(df.format(new java.util.Date(minInvocationDate)));
            buf.append(", totalInvocationTime:");
            buf.append(totalInvocationTime);
            buf.append(", averageInvocationTime:");

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53565] deprecated

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53565

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Fixed in trunk and 7.0.x and will be included in 7.0.34 onwards.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org