-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Sam Brannen opened SPR-17208 and commented
Overview
It was brought to our attention in a discussion on GitHub that JavaDoc links created from a fully qualified class name (FQCN) end up as only the simple class name in the generated HTML.
For example, in the JavaDoc for the constructor for JCacheCache
, we have the following.
/**
* Create an {@link org.springframework.cache.jcache.JCacheCache} instance.
* @param jcache backing JCache Cache instance
*/
public JCacheCache(Cache<Object, Object> jcache) {
this(jcache, true);
}
The Spring Team has always assumed that the generated HTML would look like the following.
Create an
org.springframework.cache.jcache.JCacheCache
instance.
In fact, that is what Eclipse IDE generates in the JavaDoc view. The above was literally copied and pasted from Eclipse.
However, the generated HTML on docs.spring.io actually looks like the following.
Create an
JCacheCache
instance.
This makes the statement grammatically incorrect since JCacheCache
starts with a consonant instead of a vowel (i.e., if it were instead org.springframework.cache.jcache.JCacheCache
).
Deliverables
- Determine if there is a flag that instructs JavaDoc to emit the FQCN instead of the simple class name.
- If there is no such configuration option/flag, devise a means to update all affected JavaDoc within the code base accordingly -- for example, via regular expressions.
Affects: 5.1 RC2
Reference URL: #1938 (comment)