I would suggest not to use newer versions of Java on an old, especially, end-of-life, version of ColdFusion. It might work, but will involve reinventing the wheel - pun intended - and will lead to unpredictable behaviour.
Imagine trying to fit the engine of a 2014 Ford Focus on to a 1925 Model T Ford. Java is called a machine not for nothing.