Support JDK 1.8

- Replace reference to internal class name with published API class
  name.