JBMAR-160: fixes for JDK 8

https://issues.jboss.org/browse/JBMAR-160
Incorrect; the test factories in fact will instantiate this class.

Also this line cannot be commented out; this is how the end of data for and object is detected, and how object data are isolated from one another.