You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2009/02/01 19:29:59 UTC
[jira] Created: (HARMONY-6080) JEditorPane.setPage() swallows
IOExceptions; results in IllegalArgumentException (Model must be
'StyledDocument') instead of FileNotFoundException
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.