You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by pe...@apache.org on 2014/07/17 12:17:38 UTC

git commit: WICKET-5647 missing generic cast causes compile error on OS X / jdk 8

Repository: wicket
Updated Branches:
  refs/heads/master e0b105e5b -> f1893e7dc


WICKET-5647 missing generic cast causes compile error on OS X / jdk 8


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

Branch: refs/heads/master
Commit: f1893e7dc451a65a7c3a15c4607b5e6ea3f016a3
Parents: e0b105e
Author: Peter Ertl <pe...@apache.org>
Authored: Thu Jul 17 12:08:21 2014 +0200
Committer: Peter Ertl <pe...@apache.org>
Committed: Thu Jul 17 12:08:21 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/wicket/blob/f1893e7d/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 1688389..ede0d3f 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
@@ -790,7 +790,7 @@ public class ValueMap extends LinkedHashMap<String, Object> implements IValueMap
 	public <T extends Enum<T>> T getAsEnum(final String key, final Class<T> eClass)
 	{
 		// explicitly pass T as type to be able to build with JDK 1.8. WICKET-5427
-		return this.<T>getEnumImpl(key, eClass, null);
+		return this.getEnumImpl(key, eClass, (T)null);
 	}
 
 	/**