Author: tdraier
Date: Tue Jan 10 11:54:45 2006
New Revision: 12729

URL: https://jahia.mine.nu/websvn/listing.php?sc=1&rev=12729&repname=jahia
Log:
java 1.5 compat

Modified:
    trunk/core/src/java/org/jahia/services/applications/HttpSessionWrapper.java

Modified: 
trunk/core/src/java/org/jahia/services/applications/HttpSessionWrapper.java
URL: 
https://jahia.mine.nu/websvn/diff.php?path=/trunk/core/src/java/org/jahia/services/applications/HttpSessionWrapper.java&rev=12729&repname=jahia
==============================================================================
--- trunk/core/src/java/org/jahia/services/applications/HttpSessionWrapper.java 
(original)
+++ trunk/core/src/java/org/jahia/services/applications/HttpSessionWrapper.java 
Tue Jan 10 11:54:45 2006
@@ -131,12 +131,11 @@
         // of the yet unfinalized servlet API
         try {
             Class sessionClass = originalSession.getClass ();
-            java.lang.reflect.Method theMethod = sessionClass.getMethod 
("getServletContext",
-                    null);
+            java.lang.reflect.Method theMethod = sessionClass.getMethod 
("getServletContext", (Class[])null);
             if (theMethod == null) {
                 return null;
             } else {
-                Object returnValue = theMethod.invoke (originalSession, null);
+                Object returnValue = theMethod.invoke (originalSession, 
(Object[])null);
                 if (returnValue instanceof ServletContext) {
                     return (ServletContext) returnValue;
                 } else {

Reply via email to