eclipse-jdt / eclipse-jdt/eclipse.jdt.core

invalidJavadocTags does not consider default access modifiers

Open
#3,306 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

`invalidJavadocTags` can be configured to only examine methods with certain access modifiers (`invalidJavadocTagsVisibility`). However this seems to only consider explicitly specified modifiers and not effective/default modifiers.

E.g. when `invalidJavadocTagsVisibility` is set to `protected` it should validate all methods in an interface since they are all implicitly `public`. However, a warning is only created when the method is explicitly marked as `public`:

```java
public interface MyInterface
{
// creates a warning
/**
* @param doesNotExist
*/
public void test1();

// does not create a warning
/**
* @param doesNotExist
*/
void test2();
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.