BEA Beehive @jpf:exception-handler Javadoc tags in the migrated JPF
files are flagged with this rule. The rule has a quick fix that
converts the tag to a @Jpf.ExceptionHandler method-level annotation.
The following example shows BEA Beehive @jpf:exception-handler Javadoc tags:
|
/** * @jpf:exception-handler * @jpf:forward name="errorPage" path="/error.jsp" */ protected Forward handleException(Exception e, String message) |
The quick fix migrates these tags as shown in the following example:
|
/** * @jpf:exception-handler * @jpf:forward name="errorPage" path="/error.jsp" */ @Jpf.ExceptionHandler(forwards = { @Jpf.Forward(name = "errorPage", path = "/error.jsp") }) protected Forward handleException(Exception e, String message) |
The Javadoc is converted to regular Java™ comments
so that the rule does not continue to detect the @jpf tag.