Test invalid jdk

Rebased as requested using topic branch.