[
https://issues.apache.org/struts/browse/WW-2983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-2983.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.1.7
> 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
> Fix For: 2.1.7
>
>
> 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.