This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 8358 - Convert to Text in JArFileSystem throws java.io.IOException
Summary: Convert to Text in JArFileSystem throws java.io.IOException
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: -FFJ-
Hardware: PC Linux
: P4 major (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-10 13:26 UTC by dmladek
Modified: 2003-07-01 15:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE.log (16.20 KB, text/plain)
2001-07-20 20:39 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2000-11-10 13:26:23 UTC
[1146CE/IE]
jdk1.3.0-FCS-BlackDown
=======================

The problems I've found appers in JarFileSystem.
And I'm not sure to which Product it should belong
(it could be core, text or openide too).

Description
---------------------------------
if i mount a jar and i double click(Convert to Text) on
undefined type file. The java.io.IOEception is thrown.

see ide.log
Comment 1 dmladek 2000-11-10 13:43:59 UTC
Created attachment 294 [details]
IDE.log
Comment 2 dmladek 2000-11-10 13:48:59 UTC
I've thought about it and openide is better  fitting product.
Comment 3 Jesse Glick 2000-11-10 14:46:59 UTC
Nope, text module. The action should be disabled if the relevant FileObject is
read-only, as is the case here.
Comment 4 dmladek 2000-11-10 16:20:59 UTC
OK, you are probably right. But it's easy/cheep solution which isn't opened to
user's needs.
IMHO Why a file has to have wr perrmission to display its content?
It doesn't sound much logicaly. Lots of others SW tools if they can work with
archives, they can display content of any file I wish. And how thay maintain
the stuffs howto, it's their problem I don't want to take carre about this.
In general they use a temporary store on a disk usualy.But they never need
Write access to that file.

I don't have any idea how it is implemented in IDE. Why the convertation
has to have "w" access to a file it could read some type of StreamBufferIn
or whatever.
I think the fix of that bug should display content of wanted file.
The problem will be how to solve in UI that this file was already "virtualy"
converted and changing its icon.
Comment 5 Peter Zavadsky 2000-11-20 18:02:59 UTC
Fixed in [main-trunk] and [release31] branch. In [boston] remains and fix will
be passed to sustaining.

The fix is made as Jesse suggested. So the action is disabled on read-only
objects.
Comment 6 dmladek 2000-11-21 17:10:59 UTC
Tested on NBStable3.1 [11]
==========================
seems OK
Comment 7 Quality Engineering 2003-07-01 15:17:05 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.