You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2010/06/06 18:54:17 UTC

DO NOT REPLY [Bug 49394] New: Classcast Exception in ActionRouter.postActionPerformed

https://issues.apache.org/bugzilla/show_bug.cgi?id=49394

           Summary: Classcast Exception in
                    ActionRouter.postActionPerformed
           Product: JMeter
           Version: Nightly (Please specify date)
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: dbrosius@mebigfatguy.com


Created an attachment (id=25533)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25533)
patch for class cast exception

code uses the reflective version of toArray to convert a HashSet to an array,
and casts it to the real type of the hashset. However, because of type erasure,
there's no way for toArray to know what the correct type is, and instead
returns an Object[] instead of an ActionListener[]. Changed code to use the
non-reflective version of toArray which correctly returns the real type of the
array.

Also changed preActionPerformed to use the non-reflective version as well, even
though that code was correct. (But using this version is more performant).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49394] Classcast Exception in ActionRouter.postActionPerformed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49394

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Sebb <se...@apache.org> 2010-06-06 15:58:11 EDT ---
Thanks, patch applied:

URL: http://svn.apache.org/viewvc?rev=951940&view=rev
Log:
Bug 49394 - Classcast Exception in ActionRouter.postActionPerformed

Modified:
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java
   jakarta/jmeter/trunk/xdocs/changes.xml


BTW, did you get a CCE, or was this a bug found by Findbugs?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org


DO NOT REPLY [Bug 49394] Classcast Exception in ActionRouter.postActionPerformed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49394

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org