fix compile error with java8 patch and type structure cache