Skip to content

Enum bug in eclipse 4.8.0 (default should be 4.7.3) #263

Closed
@nedtwigg

Description

@nedtwigg

I tested out 3.14.0-SNAPSHOT, which now has @fvgh's great new eclipse framework in place. It worked great, except for a known bug. You already pointed it out Frank, but after using it on some large projects, I think we should not make 4.8.0 the default eclipse version.

There is a bug in the 4.8.0 formatter which causes all enums to be indented strangely. Instead of this:

public enum {
  ONE, TWO;

  public int asNumber() {
    return ordinal();
  }
}

We get this:

public enum {
ONE, TWO;

  public int asNumber() {
    return ordinal();
  }
}

The bug is tracked at eclipse as 536322, and it's already fixed for the next release. Since it's a pretty big behavior change and it's only present in 4.8.0, I think we should skip it as the default.

Only trouble is, it seems we're missing the lockfile for 4.7.3, and also for 4.6.2. I think we should:

  • add lockfile for 4.6.2 and 4.7.3
  • change the default to 4.7.3, with a note that we're skipping 4.8.0 as default because of this issue

Once this is done, I'm ready to cut a new release! Would you like to merge #241 and #238 first, @fvgh?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions