[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
Reporter: Kevin Zhou
Fix For: 5.0M9
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.
|