commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaus Hartlage (JIRA)" <>
Subject [jira] Created: (MATH-284) Avoid ArrayStoreException
Date Sun, 16 Aug 2009 19:59:14 GMT
Avoid ArrayStoreException

                 Key: MATH-284
             Project: Commons Math
          Issue Type: Improvement
    Affects Versions: 2.0
            Reporter: Klaus Hartlage
            Priority: Minor

Add a new method
     * Returns the runtime class of the FieldElement. 
     * @return The {@code Class} object that represents the runtime
     *         class of this object.
    Class<? extends FieldElement> getRuntimeClass();

and replace all occurrences of 

to avoid the throwing of ArrayStoreException in the case you have a type hierachy of Fields
with a common interface
and the array should have the interface type at runtime.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message