Porting SubScript to JVM 8