Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 94339 invoked from network); 21 Apr 2009 05:52:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Apr 2009 05:52:12 -0000 Received: (qmail 65026 invoked by uid 500); 21 Apr 2009 05:52:12 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 64982 invoked by uid 500); 21 Apr 2009 05:52:12 -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 64973 invoked by uid 99); 21 Apr 2009 05:52:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 05:52:12 +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; Tue, 21 Apr 2009 05:52:09 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F1C50234C004 for ; Mon, 20 Apr 2009 22:51:47 -0700 (PDT) Message-ID: <2069384350.1240293107975.JavaMail.jira@brutus> Date: Mon, 20 Apr 2009 22:51:47 -0700 (PDT) From: "Kevin Zhou (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6162) [classlib][luni] java.util.Properties#load(java.io.InputStream) should throw IllegalArgumentException if the given InputStream contains an Invalid Unicode sequence 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][luni] java.util.Properties#load(java.io.InputStream) should throw IllegalArgumentException if the given InputStream contains an Invalid Unicode sequence ------------------------------------------------------------------------------------------------------------------------------------------------------------------- Key: HARMONY-6162 URL: https://issues.apache.org/jira/browse/HARMONY-6162 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 while HY fails. The input stream contains "a=\\u123" where \\u123 is regarded as an Unicode escape but it doesn't follows the expected format: \\uxxxx. It should contains 4 hex digits. Thus, it should throw a java.lang.IllegalArgumentException. [1] Test Case: public void test_Properties_loadLjava_io_InputStream() { Properties prop = new Properties(); try { prop.load(new ByteArrayInputStream("a=\\u123".getBytes())); 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.