From commits-return-43088-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Mon Sep 03 08:37:43 2007 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 39099 invoked from network); 3 Sep 2007 08:37:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2007 08:37:43 -0000 Received: (qmail 90899 invoked by uid 500); 3 Sep 2007 08:37:38 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 90883 invoked by uid 500); 3 Sep 2007 08:37:38 -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 90874 invoked by uid 99); 3 Sep 2007 08:37:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 01:37:38 -0700 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; Mon, 03 Sep 2007 08:38:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 537B9714163 for ; Mon, 3 Sep 2007 01:37:20 -0700 (PDT) Message-ID: <606661.1188808640326.JavaMail.jira@brutus> Date: Mon, 3 Sep 2007 01:37:20 -0700 (PDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Resolved: (HARMONY-4696) [classlib][swing][html] JEditorPane doesn't recognize HTML by file name In-Reply-To: <5417035.1188398010806.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-4696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison resolved HARMONY-4696. ---------------------------------- Resolution: Fixed Thanks Vasily. Patch applied to SWING module at repo revision r572253. Please verify it was applied as you expected. > [classlib][swing][html] JEditorPane doesn't recognize HTML by file name > ----------------------------------------------------------------------- > > Key: HARMONY-4696 > URL: https://issues.apache.org/jira/browse/HARMONY-4696 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Vasily Zakharov > Assignee: Tim Ellison > Attachments: Harmony-4696-Fix.patch, Harmony.jpg, RI.jpg > > > The following simple test demonstrates the problem: > import javax.swing.JFrame; > import javax.swing.JEditorPane; > public class Test { > public static void main(String argv[]) { > try { > JFrame frame = new JFrame(); > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > frame.add(new JEditorPane("file:test.html")); > frame.setSize(150, 100); > frame.setVisible(true); > } catch (Exception e) { > e.printStackTrace(System.out); > } > } > } > test.html: > normal italic > test.html contains HTML code not clearly detectable as HTML. However, this code is contained in file having .html extension, and it's enough for RI to use HTML renderer. Harmony doesn't do it. The attached screenshots demonstrate the results on RI and Harmony. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.