freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [15/25] incubator-freemarker git commit: Tweaked default method support a bit: Don't ignore synthetic property read methods in general, only bridge methods.
Date Mon, 13 Mar 2017 10:43:31 GMT
Tweaked default method support a bit: Don't ignore synthetic property read methods in general,
only bridge methods.


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/b855872b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/b855872b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/b855872b

Branch: refs/heads/2.3
Commit: b855872b0283c15a9fb74ca0d10833aebbd3dde9
Parents: d095f5a
Author: ddekany <ddekany@apache.org>
Authored: Sun Mar 12 13:46:41 2017 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Sun Mar 12 13:46:41 2017 +0100

----------------------------------------------------------------------
 src/main/java/freemarker/ext/beans/ClassIntrospector.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/b855872b/src/main/java/freemarker/ext/beans/ClassIntrospector.java
----------------------------------------------------------------------
diff --git a/src/main/java/freemarker/ext/beans/ClassIntrospector.java b/src/main/java/freemarker/ext/beans/ClassIntrospector.java
index 911b14d..915fb42 100644
--- a/src/main/java/freemarker/ext/beans/ClassIntrospector.java
+++ b/src/main/java/freemarker/ext/beans/ClassIntrospector.java
@@ -421,7 +421,7 @@ class ClassIntrospector {
         // here, we don't utilize the accessibleMethods Map, which we might already have
at this point.)
         for (Method method : clazz.getMethods()) {
             if (_JavaVersions.JAVA_8.isDefaultMethod(method) && method.getReturnType()
!= void.class
-                    && !method.isSynthetic()) {
+                    && !method.isBridge()) {
                 Class<?>[] paramTypes = method.getParameterTypes();
                 if (paramTypes.length == 0
                         || paramTypes.length == 1 && paramTypes[0] == int.class /*
indexed property reader */) {


Mime
View raw message