You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by vi...@apache.org on 2014/09/17 08:20:08 UTC

svn commit: r1625469 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/tomcat/websocket/pojo/PojoMessageHandlerBase.java

Author: violetagg
Date: Wed Sep 17 06:20:08 2014
New Revision: 1625469

URL: http://svn.apache.org/r1625469
Log:
Merged revisions 1560817, 1561623, 1606072 from tomcat/trunk:
- Fix some arcane introspection errors.
- Add a TODO to remind me to come back and look at this
- Correct comment

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/pojo/PojoMessageHandlerBase.java

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1560817,1561623,1606072

Modified: tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/pojo/PojoMessageHandlerBase.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/pojo/PojoMessageHandlerBase.java?rev=1625469&r1=1625468&r2=1625469&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/pojo/PojoMessageHandlerBase.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/websocket/pojo/PojoMessageHandlerBase.java Wed Sep 17 06:20:08 2014
@@ -50,6 +50,14 @@ public abstract class PojoMessageHandler
             int indexSession, long maxMessageSize) {
         this.pojo = pojo;
         this.method = method;
+        // TODO: The method should already be accessible here but the following
+        // code seems to be necessary in some as yet not fully understood cases.
+        try {
+            this.method.setAccessible(true);
+        } catch (Exception e) {
+            // It is better to make sure the method is accessible, but
+            // ignore exceptions and hope for the best
+        }
         this.session = session;
         this.params = params;
         this.indexPayload = indexPayload;



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