Skip to content

Commit

Permalink
Wrong argument is being passed to constructor of custom data type (#113)
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

To fix the argument passed to the constructor of a custom data type

## How was this patch tested?

All existing unit tests still pass
  • Loading branch information
rayokota authored and weiqingy committed Apr 3, 2017
1 parent 4c829f3 commit ab24b60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ object SHCDataTypeFactory {
// Data type implemented by user
Class.forName(f.fCoder)
.getConstructor(classOf[Option[Field]])
.newInstance(f.fCoder)
.newInstance(Some(f))
.asInstanceOf[SHCDataType]
}
}
Expand Down

0 comments on commit ab24b60

Please sign in to comment.