Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 49243 invoked from network); 27 Sep 2006 02:31:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 02:31:42 -0000 Received: (qmail 95577 invoked by uid 500); 27 Sep 2006 02:31:42 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 95541 invoked by uid 500); 27 Sep 2006 02:31:42 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 95525 invoked by uid 99); 27 Sep 2006 02:31:41 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 19:31:41 -0700 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=GAPPY_SUBJECT Received: from [209.237.227.198] ([209.237.227.198:43212] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id A6/31-21307-C82E9154 for ; Tue, 26 Sep 2006 19:31:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C004B7141E0 for ; Wed, 27 Sep 2006 02:27:51 +0000 (GMT) Message-ID: <6878695.1159324071783.JavaMail.jira@brutus> Date: Tue, 26 Sep 2006 19:27:51 -0700 (PDT) From: "Paulex Yang (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Assigned: (HARMONY-1349) [classlib][html] Compatibility: The values stored in the public field type of j.s.t.h.p.Entity are different from those used in the RI In-Reply-To: <13577177.1156954523366.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-1349?page=all ] Paulex Yang reassigned HARMONY-1349: ------------------------------------ Assignee: Paulex Yang > [classlib][html] Compatibility: The values stored in the public field type of j.s.t.h.p.Entity are different from those used in the RI > -------------------------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1349 > URL: http://issues.apache.org/jira/browse/HARMONY-1349 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Miguel Montes > Assigned To: Paulex Yang > Priority: Minor > Attachments: Entity_01.patch, Entity_01.patch > > > The class javax.swing.text.html.parser.Entity defines the type and value of an entity in a DTD. The field 'type' is used in the RI for storing the type, but also to encode other information, used by the methods isParameter() and isGeneral(). Therefore, the value returned by getType() is NOT the same as the value stored in type. > ====================== java code ======================== > import java.io.IOException; > import javax.swing.text.html.parser.*; > public class TestEntityType { > public static void main(String[] args) throws IOException { > DTD dtd = DTD.getDTD("dummy"); > Entity space = dtd.getEntity("#SPACE"); > System.out.println("type: "+space.type); > System.out.println("getType(): "+space.getType()); > } > } > ======================================================= > Output: > $ java -showversion TestEntityType > java version "1.5.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) > Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode) > type: 65536 > getType(): 0 > $ /harmony-hdk-r431938/jdk/jre/bin/java -showversion TestEntityType > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r431938, (Aug 16 2006), Linux/ia32/gcc 3.4.6, release build > http://incubator.apache.org/harmony > type: 0 > getType(): 0 > Attached is a patch to make Entity behavior similar to the observed behavior of the RI -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira