[javadoc] IDEA-370761 IDEA-377509 IDEA-378914 Add test to avoid regressions

For a reason that I did not investigate, the issue doesn't manifest on the master branch. It does on the release version (2025.2) though, so this test should act as a safeguard.

GitOrigin-RevId: 5cdc932f15d444af6fe40cf2781dcce66f4e27ac
This commit is contained in:
Mathias
2025-10-29 21:44:44 +00:00
committed by intellij-monorepo-bot
parent 9763bb6bce
commit 839d31254e
3 changed files with 29 additions and 0 deletions
@@ -0,0 +1,14 @@
public interface GenericInterfaceWithMarkdown<A> {
/// For some reason, markdown comments break
/// generated implementation in the current release (2025.2)
/// but not on master, so here's a test
A functionWithMarkdown();
}
class DefaultImpl implements GenericInterfaceWithMarkdown<String> {
@Override
public String functionWithMarkdown() {
return "";
}
}
@@ -0,0 +1,11 @@
public interface GenericInterfaceWithMarkdown<A> {
/// For some reason, markdown comments break
/// generated implementation in the current release (2025.2)
/// but not on master, so here's a test
A functionWithMarkdown();
}
class DefaultImpl implements GenericInterfaceWithMarkdown<String> {
<caret>
}
@@ -702,6 +702,10 @@ public class OverrideImplementTest extends LightJavaCodeInsightFixtureTestCase {
doTest(true);
}
public void testMarkdownComment() {
doTest(true);
}
private void doTest(boolean toImplement) {
final String name = getTestName(false);
myFixture.configureByFile("before" + name + ".java");