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

google-java-format-eclipse-plugin-1.11.0.jar does not format the same as command line

Open
#642 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Reproduce the supplied Java example with the Eclipse plugin and google-java-format-1.11.0-all-deps.jar from the command line; the issue names no repository files or tests. Trace the formatting path responsible for the differing string-literal output, and consider the issue done when both entry points produce the same formatting.

Written by the indexing model from the issue text.

Description

Eclipse

Here is a test:

package some.test;

public class Test {
  String myLongString =
      "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.";
}

Eclipse formats it just as above. google-java-format-1.11.0-all-deps.jar on the comamnd line formats it as follows:

package some.test;

public class Test {
  String myLongString =
      "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog."
          + " The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy"
          + " dog.";
}

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

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.