[
https://issues.apache.org/struts/browse/WW-2983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45596#action_45596
]
Musachy Barroso commented on WW-2983:
-------------------------------------
I see, I was very skeptical on how the plugin could found these classes.
Checking for anonymous won't break anything so it can be added for convenience.
> Anonymous Action classes cause IndexOutOfBoundException
> -------------------------------------------------------
>
> Key: WW-2983
> URL: https://issues.apache.org/struts/browse/WW-2983
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Convention
> Affects Versions: 2.1.6
> Reporter: Eung-ju PARK
> Priority: Minor
>
> I have some anonymous Action classes in unit test code. Anonymous classes
> have no name. Class#getSimpleName returns "". It causes
> IndexOutOfBoundException when initialing convention-plugin.
> PackageBasedActionConfigBuilder#buildConfiguration skips all interfaces,
> enums, annotations, and abstract classes. It should skip anonymous classes
> too. Add actionClass.isAnonymous() to the skip condition.
> I have some anonymous Action classs in my unit test code. It's not good
> design.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.