Author: kkolinko
Date: Sat Jun 13 12:57:48 2009
New Revision: 784386

URL: http://svn.apache.org/viewvc?rev=784386&view=rev
Log:
Add explicit cast, to remove two
"non-varargs call of varargs method with inexact argument type for last 
parameter"
warnings during the build.

Modified:
    tomcat/tc6.0.x/trunk/STATUS.txt
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/util/SessionUtils.java

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=784386&r1=784385&r2=784386&view=diff
==============================================================================
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Sat Jun 13 12:57:48 2009
@@ -183,13 +183,6 @@
   +1: markt, fhanik
   -1:
 
-* Add explicit cast, to remove two
-  "non-varargs call of varargs method with inexact argument type for last 
parameter"
-  warnings during the build.
-  
http://people.apache.org/~kkolinko/patches/2009-06-11_manager_SessionUtils_varargs.patch
-  +1: kkolinko, fhanik, markt
-  -1: 
-
 * Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47343
   Regression in fix for
   https://issues.apache.org/bugzilla/show_bug.cgi?id=42747

Modified: 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/util/SessionUtils.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/util/SessionUtils.java?rev=784386&r1=784385&r2=784386&view=diff
==============================================================================
--- 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/util/SessionUtils.java 
(original)
+++ 
tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/util/SessionUtils.java 
Sat Jun 13 12:57:48 2009
@@ -118,10 +118,10 @@
                        Object probableEngine = tapestryArray.get(0);
                        if (null != probableEngine) {
                            try {
-                               Method readMethod = 
probableEngine.getClass().getMethod("getLocale", null);//$NON-NLS-1$
+                               Method readMethod = 
probableEngine.getClass().getMethod("getLocale", (Class[])null);//$NON-NLS-1$
                                if (null != readMethod) {
                                    // Call the property getter and return the 
value
-                                   Object possibleLocale = 
readMethod.invoke(probableEngine, null);
+                                   Object possibleLocale = 
readMethod.invoke(probableEngine, (Object[])null);
                                    if (null != possibleLocale && 
possibleLocale instanceof Locale) {
                                        locale = (Locale) possibleLocale;
                                    }



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

Reply via email to