Solve JDK 1.5 incompatibility.
PR: 96922 Submitted by: Anton Yudin <toha@toha.org.ua> (maintainer) Approved by: arved (mentor)