From commits-return-58640-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Wed Jun 03 01:34:19 2009 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 96686 invoked from network); 3 Jun 2009 01:34:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jun 2009 01:34:19 -0000 Received: (qmail 45780 invoked by uid 500); 3 Jun 2009 01:34:30 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 45672 invoked by uid 500); 3 Jun 2009 01:34:30 -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 45631 invoked by uid 99); 3 Jun 2009 01:34:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jun 2009 01:34:30 +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; Wed, 03 Jun 2009 01:34:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 47EBE234C052 for ; Tue, 2 Jun 2009 18:34:08 -0700 (PDT) Message-ID: <1132214319.1243992848293.JavaMail.jira@brutus> Date: Tue, 2 Jun 2009 18:34:08 -0700 (PDT) From: "Nathan Beyer (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-6219) [classlib][lang-management] java.lang.management.ThreadInfo.from(CompositeData cd) should throw IlegalArgumentException when the threadName of the given CompositeData is null In-Reply-To: <152658908.1243757647428.JavaMail.jira@brutus> 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 [ https://issues.apache.org/jira/browse/HARMONY-6219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nathan Beyer updated HARMONY-6219: ---------------------------------- Fix Version/s: (was: 5.0M10) > [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 > Attachments: HARMONY-6219.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > 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.