Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 78896 invoked from network); 23 Jan 2008 19:33:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2008 19:33:56 -0000 Received: (qmail 20436 invoked by uid 500); 23 Jan 2008 19:33:45 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 20410 invoked by uid 500); 23 Jan 2008 19:33:45 -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 20308 invoked by uid 99); 23 Jan 2008 19:33:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 11:33:45 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 19:33:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 81F3D71420D for ; Wed, 23 Jan 2008 11:33:34 -0800 (PST) Message-ID: <8173832.1201116814529.JavaMail.jira@brutus> Date: Wed, 23 Jan 2008 11:33:34 -0800 (PST) From: "Dain Sundstrom (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-5414) java.util.Properties.load() decodes invalid unicode sequences In-Reply-To: <16845505.1201027114400.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561788#action_12561788 ] Dain Sundstrom commented on HARMONY-5414: ----------------------------------------- The patch looks good. In my version I use the following exception messages for invalid unicode sequences: // for sequences that are too short "Invalid unicode sequence: expected format \\uxxxx, but got \\u" + new String(buf, 0, i) // for sequences containing non-hex characters "Illegal character " + nextChar + " in unicode sequence \\u" + new String(buf, 0, i + 1)); > java.util.Properties.load() decodes invalid unicode sequences > ------------------------------------------------------------- > > Key: HARMONY-5414 > URL: https://issues.apache.org/jira/browse/HARMONY-5414 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Dain Sundstrom > Assignee: Tim Ellison > Attachments: harmony-5414.patch, PropertiesTest.java > > > The load method on java.util.Properties will decode invalid unicode sequences like "\u123". After checking the spec regarding escaped unicode characters the sequence must contain exactly 4 hex digits. > I found this while writing an extension to the Properties object based on the Harmony code base. The test attached to this issue also shows a few inconsistencies with the Sun vm that may be bugs also. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.