I generate two Latex Math Blocks, one without and one with an anchor:

Issue: The Math Block with an anchor shows a Java code instead of the equation number.

This is running on our company's Confluence page ("Powered by Atlassian Confluence 8.5.5"). Perhaps this issue was introduced by a recent update as all Math Blocks with Anchors on existing pages now show a Java code (where they previously showed an equation number).
Any ideas what to do?