struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eung-ju PARK (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-2983) Anonymous Action classes cause IndexOutOfBoundException
Date Wed, 04 Feb 2009 17:01:46 GMT
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.


Mime
View raw message