Fix java stub generation in 1.8 to handle inner classes in annotations.