Do not use BEA Beehive @jpf:exception-handler annotations

BEA Beehive @jpf:exception-handler Javadoc tags in the migrated JPF files are flagged with this rule. An automated fix will be provided for this rule that will convert 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 automated fix will migrate 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.