Added support for JDK8

JDK8 has some new methods that needed to be implemented (developer preview JDK8)