Re: [PR] VELOCITY-984: Velocity calls method of abstract s uperclass leading to an IllegalAccessException [velocity-engine ]

tmortagne (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.devel
Message-ID <PR_kwDOAN72MM59-hKK-8e7ab60e-42a4-4f9e-baf9-11c10455e0c0@gitbox.apache.org>
tmortagne commented on code in PR #54:
URL: https://github.com/apache/velocity-engine/pull/54#discussion_r1793121546


##########
velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/MethodMap.java:
##########
@@ -58,6 +60,8 @@ public class MethodMap
 
     TypeConversionHandler conversionHandler;
 
+    private static final Method trySetAccessible = MethodUtils.getMethodObject(Method.class, "trySetAccessible");

Review Comment:
   Yes, I was torned between how a static final variable should look like and being more obvious that this is the `trySetAccessible` method.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.