eclipse-xtext / eclipse-xtext/xtext

Make Xtend use Java multi-line strings for Xtend multi-line strngs if Java 17 is the target version

Open
#3,091 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
831
Forks
330
Avg merge
3d 7h
Merged PRs (30d)
12

Description

I have noticed that Xtend does not use Java multi-line strings for Xtend multi-line strings, even if Java 17 is the target version.

This incurs in an overhead because strings which could be constants need to be constructed at runtime, which can as well created duplicated strings, even if the resulting string is always the same.

Have I missed some configuration option or is this not implemented? If so, any plans on implementing it?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Xtend's multi-line string code generation and how the Java 17 target version is handled. Confirm the generated Java uses multi-line strings when the target is Java 17, while preserving correct output for older targets, and add or update coverage for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.