commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1517262 - in /commons/proper/jcs/trunk/src: changes/changes.xml java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
Date Sun, 25 Aug 2013 10:15:50 GMT
Author: tv
Date: Sun Aug 25 10:15:50 2013
New Revision: 1517262

URL: http://svn.apache.org/r1517262
Log:
Fix for JCS-106: Bad comparison of int with 0x7fffffffffffffffL

Modified:
    commons/proper/jcs/trunk/src/changes/changes.xml
    commons/proper/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java

Modified: commons/proper/jcs/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/changes/changes.xml?rev=1517262&r1=1517261&r2=1517262&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/changes/changes.xml (original)
+++ commons/proper/jcs/trunk/src/changes/changes.xml Sun Aug 25 10:15:50 2013
@@ -20,6 +20,9 @@
 	</properties>
 	<body>
 		<release version="2.0" date="unreleased" description="JDK 1.5 based major release">
+            <action dev="tv" type="fix" issue="JCS-106" due-to="Johannes Weberhofer">
+                Bad comparison of int with Long.MAX_VALUE.
+            </action>
             <action dev="tv" type="fix" issue="JCS-103" due-to="Pavel Novak">
                 MaxMemoryIdleTimeSeconds default value is wrongly documented.
             </action>

Modified: commons/proper/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java?rev=1517262&r1=1517261&r2=1517262&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
(original)
+++ commons/proper/jcs/trunk/src/java/org/apache/jcs/auxiliary/remote/server/RemoteCacheServer.java
Sun Aug 25 10:15:50 2013
@@ -1603,7 +1603,7 @@ public class RemoteCacheServer<K extends
     private long nextListenerId()
     {
         long id = 0;
-        if ( listenerId[0] == Long.MAX_VALUE )
+        if ( listenerId[0] == Integer.MAX_VALUE )
         {
             synchronized ( listenerId )
             {



Mime
View raw message