Permalink
Browse files

minor: removing unsupported op exception from undefined bson types si…

…nce it's causing problems with server 2.3.1
  • Loading branch information...
1 parent 7a9f323 commit 99e95c9385c46b2104a3d26ff59996c93229e098 @brandonblack brandonblack committed Dec 17, 2012
Showing with 4 additions and 6 deletions.
  1. +1 −1 bson.gemspec
  2. +3 −5 ext/jbson/src/main/jbson/RubyBSONCallback.java
  3. BIN ext/jbson/target/jbson.jar
View
2 bson.gemspec
@@ -24,4 +24,4 @@ Gem::Specification.new do |s|
s.executables = ['b2json', 'j2bson']
s.require_paths = ['lib']
s.has_rdoc = 'yard'
-end
+end
View
8 ext/jbson/src/main/jbson/RubyBSONCallback.java
@@ -91,7 +91,7 @@ public void objectStart(String key){
writeRubyHash(key, (RubyHash)lastObject, (IRubyObject)hash);
}
else {
- writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)hash);
+ writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)hash);
}
_stack.addLast( (RubyObject)hash );
@@ -120,7 +120,7 @@ public void arrayStart(String key){
writeRubyHash(key, (RubyHash)lastObject, (IRubyObject)array);
}
else {
- writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)array);
+ writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)array);
}
_stack.addLast( (RubyObject)array );
@@ -149,9 +149,7 @@ public void gotNull( String name ){
}
@Deprecated
- public void gotUndefined( String name ){
- throw new UnsupportedOperationException();
- }
+ public void gotUndefined( String name ) { }
public void gotUUID( String name , long part1, long part2) {
throw new UnsupportedOperationException();
View
BIN ext/jbson/target/jbson.jar
Binary file not shown.

0 comments on commit 99e95c9

Please sign in to comment.