HCOLL-222 added failing test - map.put() throwing and NPE when putting a LongValue$$Native

This commit is contained in:
Rob Austin
2014-11-28 11:34:55 +00:00
parent 68c66d1094
commit e69d204c90
4 changed files with 45 additions and 14 deletions
@@ -143,9 +143,8 @@ abstract class AbstractChannelReplicator implements Closeable {
* @param selector
* @return
*/
private Selector openSelector(@NotNull final Selector selector, @NotNull final
SelectedSelectionKeySet
selectedKeySet) {
private Selector openSelector(@NotNull final Selector selector,
@NotNull final SelectedSelectionKeySet selectedKeySet) {
try {
@@ -165,7 +164,6 @@ abstract class AbstractChannelReplicator implements Closeable {
selectedKeysField.setAccessible(true);
publicSelectedKeysField.setAccessible(true);
Object old = selectedKeysField.get(selector);
selectedKeysField.set(selector, selectedKeySet);
publicSelectedKeysField.set(selector, selectedKeySet);