Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 73837 invoked from network); 31 May 2009 08:14:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 May 2009 08:14:17 -0000 Received: (qmail 16032 invoked by uid 500); 31 May 2009 08:14:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 15983 invoked by uid 500); 31 May 2009 08:14:29 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 15973 invoked by uid 99); 31 May 2009 08:14:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 May 2009 08:14:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 31 May 2009 08:14:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 68BD5234C04C for ; Sun, 31 May 2009 01:14:07 -0700 (PDT) Message-ID: <152658908.1243757647428.JavaMail.jira@brutus> Date: Sun, 31 May 2009 01:14:07 -0700 (PDT) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6219) [classlib][lang-management] java.lang.management.ThreadInfo.from(CompositeData cd) should throw IlegalArgumentException when the threadName of the given CompositeData is null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [classlib][lang-management] java.lang.management.ThreadInfo.from(CompositeData cd) should throw IlegalArgumentException when the threadName of the given CompositeData is null ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Key: HARMONY-6219 URL: https://issues.apache.org/jira/browse/HARMONY-6219 Project: Harmony Issue Type: Bug Components: Classlib Affects Versions: 5.0M9 Reporter: Kevin Zhou Fix For: 5.0M10 Given a test case [1], RI passes this while HARMONY fails. [1] Test Case: public void test_from_NullThreadName() throws Exception { Object stackTraceElementData = createGoodStackTraceCompositeData(); CompositeType stackTraceElementType = createGoodStackTraceElementCompositeType(); String[] names = { "threadId", "threadName", "threadState", "suspended", "inNative", "blockedCount", "blockedTime", "waitedCount", "waitedTime", "lockName", "lockOwnerId", "lockOwnerName", "stackTrace" }; Object[] values = { 1L, null, GOOD_THREAD_STATE.toString(), true, false, 1L, 500L, 1L, 1L, "lock", 2L, "lockOwner", stackTraceElementData }; OpenType[] types = { SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, SimpleType.BOOLEAN, SimpleType.BOOLEAN, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.LONG, SimpleType.STRING, SimpleType.LONG, SimpleType.STRING, new ArrayType(1, stackTraceElementType) }; CompositeType compositeType = new CompositeType(ThreadInfo.class .getName(), ThreadInfo.class.getName(), names, names, types); CompositeData data = new CompositeDataSupport(compositeType, names, values); try { ThreadInfo.from(data); fail("should throw IllegalArgumentException"); } catch (IllegalArgumentException e) { // Expected } } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.