Skip to content

Commit

Permalink
Fix compilation error caused by change in org.eclipse.jdt.core 3.37.0 (
Browse files Browse the repository at this point in the history
…eclipse-eclemma#46)

Prior to this change execution of

```
mvn compile -Pe4.31
```

leads to

```
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:3.0.5:compile (default-compile) on project org.eclipse.eclemma.core: Compilation failure: Compilation failure:
[ERROR] org.eclipse.eclemma.core/src/org/eclipse/eclemma/internal/core/SessionExporter.java:[174]
[ERROR]         this.tabWidth = IndentManipulation.getTabWidth(options);
[ERROR]                                            ^^^^^^^^^^^
[ERROR] The method getTabWidth(Map<String,String>) in the type IndentManipulation is not applicable for the arguments (Map<capture#1-of ?,capture#2-of ?>)
```

which is caused by change in
eclipse-jdt/eclipse.jdt.core@4556ac2
  • Loading branch information
Godin authored Feb 12, 2024
1 parent 7a53439 commit 43b9411
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ private static abstract class AbstractSourceFileLocator

public AbstractSourceFileLocator(IPackageFragmentRoot root) {
this.root = root;
final Map<?, ?> options = root.getJavaProject().getOptions(true);
this.tabWidth = IndentManipulation.getTabWidth(options);
this.tabWidth = IndentManipulation
.getTabWidth(root.getJavaProject().getOptions(true));
}

public final int getTabWidth() {
Expand Down

0 comments on commit 43b9411

Please sign in to comment.