Several Sling modules generate Java code (e.g. HTL compilers, JSP script engine, JSPC Maven Plugin, HTL Maven Plugin), but each has its own strategy / classes for generating valid Java code / classes. Since the org.apache.sling.commons.compiler.source.JavaEscapeHelper is an easy to reuse class, it would be better to refactor modules to rely on this helper, in order to generate code / classes using the same naming patterns.
- is related to
SLING-9135 Move org.apache.sling.scripting.sightly.java.compiler.JavaEscapeUtils into org.apache.sling.commons.compiler