From 50465e37b32d99ee23445c8bade442c42ffad634 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Fri, 1 Apr 2011 21:23:48 +0000 Subject: [PATCH] Fixed a getConnection() bug caused by a silent autoboxing issue left over from when the long -> int client ID conversion was made. Now connection lookups work again. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7152 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/networking/com/jme3/network/Server.java | 2 +- engine/src/networking/com/jme3/network/base/DefaultServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/networking/com/jme3/network/Server.java b/engine/src/networking/com/jme3/network/Server.java index 5795abfb5..272cc8167 100644 --- a/engine/src/networking/com/jme3/network/Server.java +++ b/engine/src/networking/com/jme3/network/Server.java @@ -96,7 +96,7 @@ public interface Server /** * Retrieves a hosted connection by ID. */ - public HostedConnection getConnection( long id ); + public HostedConnection getConnection( int id ); /** * Retrieves a read-only collection of all currently connected connections. diff --git a/engine/src/networking/com/jme3/network/base/DefaultServer.java b/engine/src/networking/com/jme3/network/base/DefaultServer.java index d01d12063..ee9582769 100644 --- a/engine/src/networking/com/jme3/network/base/DefaultServer.java +++ b/engine/src/networking/com/jme3/network/base/DefaultServer.java @@ -168,7 +168,7 @@ public class DefaultServer implements Server } } - public HostedConnection getConnection( long id ) + public HostedConnection getConnection( int id ) { return connections.get(id); }