harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6080) JEditorPane.setPage() swallows IOExceptions; results in IllegalArgumentException (Model must be 'StyledDocument') instead of FileNotFoundException
Date Sun, 01 Feb 2009 18:29:59 GMT
JEditorPane.setPage() swallows IOExceptions; results in IllegalArgumentException (Model must
be 'StyledDocument') instead of FileNotFoundException
--------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-6080
                 URL: https://issues.apache.org/jira/browse/HARMONY-6080
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software
Foundation or its licensors, as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r713673, (Nov 13 2008), Windows/ia32/msvc 1310, release build
http://harmony.apache.org
Windows XP
            Reporter: Sebb
             Fix For: 5.0M8


JEditorPane.setPage() swallows IOExceptions; this results in IllegalArgumentException (Model
must be 'StyledDocument') instead of FileNotFoundException, which is rather confusing.

To reproduce:

JTextPane tp = new JTextPane();
tp.setPage("file:nosuchfile");


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message