You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to deprecate a method and added a link to the recommended method.
When the original method's name is a prefix to the recommended method, the link point back to the referring method, not the new one. If more than one method all(?) methods' links points to the method with the short name, even if the other methods' names are not prefixes of the firsts.
package bug;
importjavax.ws.rs.*;
importjavax.ws.rs.core.Response;
@Path("bug")
publicclassBuggy {
/** * The link points to this method, not the other method. * * <p>the name of the pointed to method has this method's name aa a prefix. * * @return response * @deprecated see {@link #m2()} */@Deprecated@POST@Consumes("application/xml")
publicResponsem() {
returnnull;
}
/** * The link point is not correct either but if #m is removed, it will be correct. * Removing this methods has no effect in the bad link in the first method. * * <p>The name of the pointed to method does not have this method's name aa a prefix. * * @return response * @deprecated see {@link #m2()} */@Deprecated@POST@Consumes("text/plain")
publicResponsexx() {
returnnull;
}
/** @return response*/@POST@Consumes("application/json")
publicResponsem2() {
returnnull;
}
}
The text was updated successfully, but these errors were encountered:
I tried to deprecate a method and added a link to the recommended method.
When the original method's name is a prefix to the recommended method, the link point back to the referring method, not the new one. If more than one method all(?) methods' links points to the method with the short name, even if the other methods' names are not prefixes of the firsts.
package bug;
The text was updated successfully, but these errors were encountered: