harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6149) [classlib][lang-management] java.lang.management.MemoryNotificationInfo.from(CompositeData cd) should throw IllegalArgumentException if cd doesn't represent a MemoryNotificationInfo object
Date Thu, 30 Apr 2009 03:03:30 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704454#action_12704454
] 

Kevin Zhou commented on HARMONY-6149:
-------------------------------------

Currently, this method is only used by ThreadInfo.from(CompositeData cd). It checks the number
of how many fields a given composite data has wrapped. But the previous validation is too
serious. For example, the composite data for ThreadInfo.from(...) method should have at least
13 fields but the number can also be more. But it should throw IllegalArgumentException if
the data doesn't have enough fields inside less than 13.

> [classlib][lang-management] java.lang.management.MemoryNotificationInfo.from(CompositeData
cd) should throw IllegalArgumentException if cd doesn't represent a MemoryNotificationInfo
object
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6149
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6149
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M8, 5.0M9
>            Reporter: Kevin Zhou
>            Assignee: Nathan Beyer
>             Fix For: 5.0M10
>
>         Attachments: HARMONY-6149.diff, HARMONY6149Test.java
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> For java.lang.management.MemoryNotificationInfo.from(CompositeData cd) method, the Java
Spec has specifies that the given CompositeData must contains the following attributes:
> ATTRIBUTE_NAME	TYPE
> poolName	java.lang.String
> usage	javax.management.openmbean.CompositeData
> count 	java.lang.Long
> Otherwise, it should throw an java.lang.IllegalArgumentException.

-- 
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