From c19642baf4ffdd7ee559141af68410d2ade21949 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Tue, 23 Apr 2013 10:28:03 -0500 Subject: [PATCH] [Bug 404010] fix cast exception in mongodb session manager --- .../org/eclipse/jetty/nosql/mongodb/MongoSessionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionManager.java b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionManager.java index 80b29b578db..22285ca3517 100644 --- a/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionManager.java +++ b/jetty-nosql/src/main/java/org/eclipse/jetty/nosql/mongodb/MongoSessionManager.java @@ -143,7 +143,7 @@ public class MongoSessionManager extends NoSqlSessionManager } else { - version = new Long(((Long)version).intValue() + 1); + version = new Long(((Number)version).longValue() + 1); update.put("$inc",__version_1); }