Extracting changes to javaClasses.cpp

Separating changes for $StaticAccessor/$Accessor into separate patch.
Moving two tests which are currently supported only on Java 8