You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/03/06 11:07:55 UTC

[5/6] git commit: Fix transformation of an Enumeration to Array - we need to pass the type of the array we want to be constructed, otherwise it will be Object[]

Fix transformation of an Enumeration to Array - we need to pass the type of the array we want to be constructed, otherwise it will be Object[]

(cherry picked from commit 4f1fd55b437322b8719052ed0abe24cc35a82f08)


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

Branch: refs/heads/wicket-6.x
Commit: 634d9e294b6628e92ce0529b45c99a0dab985e03
Parents: f70579a
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Mar 6 10:13:09 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Mar 6 12:05:07 2014 +0200

----------------------------------------------------------------------
 .../java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/634d9e29/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
----------------------------------------------------------------------
diff --git a/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java b/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
index e7a770b..40e93c8 100644
--- a/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
+++ b/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
@@ -118,7 +118,7 @@ public class HttpSessionCopy implements HttpSession
 	@Override
 	public String[] getValueNames()
 	{
-		return (String[])Collections.list(attributes.keys()).toArray();
+		return Collections.list(attributes.keys()).toArray(new String[attributes.size()]);
 	}
 
 	@Override