Skip to content

Override Conflict in MavenImportingTestCase when updating to IntelliJ Platform 2025.1.6 #1446

@anusreelakshmi934

Description

@anusreelakshmi934

Encountering a method signature conflict in test classes that extend MavenImportingTestCase after upgrading the IntelliJ Platform to 2025.1.6

The following errors are thrown during compilation:

'setUp()' in 'com.intellij.maven.testFramework.MavenImportingTestCase' clashes with 'setUp()' in 'com.intellij.maven.testFramework.MavenTestCase'; overridden method does not throw 'java.lang.Exception'.

'setUpFixtures()' in 'io.openliberty.tools.intellij.lsp4jakarta.it.core.BaseJakartaTest' clashes with 'setUpFixtures()' in 'com.intellij.maven.testFramework.MavenTestCase'; overridden method does not throw 'java.lang.Exception'

'tearDown()' in 'com.intellij.maven.testFramework.MavenImportingTestCase' clashes with 'tearDown()' in 'com.intellij.maven.testFramework.MavenTestCase'; overridden method does not throw 'java.lang.Exception'

This worked without issue in earlier platform versions. The change in method signature (likely due to removal of throws Exception in the superclass) causes incompatibility with existing test base classes.

Metadata

Metadata

Labels

Type

Projects

Status

Parked

Relationships

None yet

Development

No branches or pull requests

Issue actions