Skip to content

Commit

Permalink
[m2e] Ensure a linkable method exists in M2E 2.x
Browse files Browse the repository at this point in the history
When running in M2E 2.x the  delegates to the array version of the mavenProjectChanged method, however as this is declared by the 1.x interface the JVM fails to link the method call. We therefore re-declare the method in the Abstract class to give the linker something to link to.

Signed-off-by: Tim Ward <[email protected]>
  • Loading branch information
timothyjward committed Nov 14, 2022
1 parent de3ff4b commit c8ea019
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bndtools.m2e/src/bndtools/m2e/AbstractMavenRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,11 @@ public void mavenProjectChanged(List<MavenProjectChangedEvent> events, IProgress
mavenProjectChanged(events.toArray(new MavenProjectChangedEvent[0]), monitor);
}

/**
* Needed in M2E version 2.0 to link to when the interface doesn't include
* it
*/
@Override
public abstract void mavenProjectChanged(MavenProjectChangedEvent[] events, IProgressMonitor monitor);

}

0 comments on commit c8ea019

Please sign in to comment.