Updated Branches:
  refs/heads/master fed607f62 -> 17860dfb1

WICKET-5427 Building Wicket with JDK 1.8 fails with signatures like <T extends 
Enum<T>>


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/17860dfb
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/17860dfb
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/17860dfb

Branch: refs/heads/master
Commit: 17860dfb1b4ad7ee57b550aa0b0ab2bc5b3a2805
Parents: fed607f
Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Authored: Tue Nov 26 14:43:50 2013 +0100
Committer: Martin Tzvetanov Grigorov <mgrigo...@apache.org>
Committed: Tue Nov 26 14:47:13 2013 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/wicket/util/value/ValueMap.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/17860dfb/wicket-util/src/main/java/org/apache/wicket/util/value/ValueMap.java
----------------------------------------------------------------------
diff --git 
a/wicket-util/src/main/java/org/apache/wicket/util/value/ValueMap.java 
b/wicket-util/src/main/java/org/apache/wicket/util/value/ValueMap.java
index acba07f..1688389 100755
--- a/wicket-util/src/main/java/org/apache/wicket/util/value/ValueMap.java
+++ b/wicket-util/src/main/java/org/apache/wicket/util/value/ValueMap.java
@@ -789,7 +789,8 @@ public class ValueMap extends LinkedHashMap<String, Object> 
implements IValueMap
        @Override
        public <T extends Enum<T>> T getAsEnum(final String key, final Class<T> 
eClass)
        {
-               return getEnumImpl(key, eClass, null);
+               // explicitly pass T as type to be able to build with JDK 1.8. 
WICKET-5427
+               return this.<T>getEnumImpl(key, eClass, null);
        }
 
        /**

Reply via email to