Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

google-java-format doesn't work in intellij idea,when i upgrad to jdk 21 with enable preview feature!~

Open
#973 5 comments 16 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Reproduce the failure in IntelliJ IDEA 2023.2.2 with JDK 21 and preview features enabled, using the string-template example in SchedulingAutomateFacade.java. Start by checking how google-java-format handles this syntax; done means the file formats successfully without the syntax-error message.

Written by the indexing model from the issue text.

Description

IntelliJ

My code use some preview feature, such as string template.
the code likes below

throw new IllegalArgumentException(STR."place:\{placeOrg.getName()},\{yearMonth}");

the error message is below

google-java-format failed. Does SchedulingAutomateFacade.java have syntax errors?

I worked with IntelliJ IDEA 2023.2.2

Does anyone can help me to solve this problem?
Thanks

Dominant language
Java
Stars
6.2k
Forks
936
Avg merge
6m
Merged PRs (30d)
3

Getting set up

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.

More from google/google-java-format

All issues in google/google-java-format

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.