Skip to content

Commit 99e95c9

Browse files
author
Brandon Black
committed
minor: removing unsupported op exception from undefined bson types since it's causing problems with server 2.3.1
1 parent 7a9f323 commit 99e95c9

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

bson.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Gem::Specification.new do |s|
2424
s.executables = ['b2json', 'j2bson']
2525
s.require_paths = ['lib']
2626
s.has_rdoc = 'yard'
27-
end
27+
end

ext/jbson/src/main/jbson/RubyBSONCallback.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void objectStart(String key){
9191
writeRubyHash(key, (RubyHash)lastObject, (IRubyObject)hash);
9292
}
9393
else {
94-
writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)hash);
94+
writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)hash);
9595
}
9696

9797
_stack.addLast( (RubyObject)hash );
@@ -120,7 +120,7 @@ public void arrayStart(String key){
120120
writeRubyHash(key, (RubyHash)lastObject, (IRubyObject)array);
121121
}
122122
else {
123-
writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)array);
123+
writeRubyArray(key, (RubyArray)lastObject, (IRubyObject)array);
124124
}
125125

126126
_stack.addLast( (RubyObject)array );
@@ -149,9 +149,7 @@ public void gotNull( String name ){
149149
}
150150

151151
@Deprecated
152-
public void gotUndefined( String name ){
153-
throw new UnsupportedOperationException();
154-
}
152+
public void gotUndefined( String name ) { }
155153

156154
public void gotUUID( String name , long part1, long part2) {
157155
throw new UnsupportedOperationException();

ext/jbson/target/jbson.jar

5 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)