Resugar makeConcatWithConstants
into string templates when supported
#377
Labels
enhancement
New feature or request
Priority: Low
Low priority
Subsystem: Writing
Anything concerning how expressions are written
Is your feature request related to a problem? Please describe.
String templates currently will decompile into the string concats they're desugared into.
Describe the solution you'd like
If the class file supports string templates (currently Java 21+ preview class files), these string concats could be sugared into string templates. It's not guaranteed they were originally string templates, but it's impossible to tell if they were (the desugaring happens on the AST, so javac literally compiles them as if they were standard string concats).
Additional context
Original source
Decompiled source (Vineflower 1.10.1)
The text was updated successfully, but these errors were encountered: