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 25731 - Treat as file doesn't work in jar file
Summary: Treat as file doesn't work in jar file
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-17 11:11 UTC by Milan Kubec
Modified: 2008-12-22 18:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc stack traces (2.05 KB, text/plain)
2002-07-17 11:13 UTC, Milan Kubec
Details
patch provided (3.19 KB, patch)
2002-12-03 14:58 UTC, rmatous
Details | Diff
exc stack trace (832 bytes, text/plain)
2003-07-14 10:11 UTC, Milan Kubec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2002-07-17 11:11:55 UTC
If jar file contains some unrecognized file and
user want view that file as text und uses action
"Treat as File" from pop-up menu on that file
IOException is thrown and file is not treated as
text. In fact two types of IOE were thrown, see
attached file. One was thrown for translate.names
file inside module jar file and the second for the
file with the same name but inside different jar file.
Comment 1 Milan Kubec 2002-07-17 11:13:04 UTC
Created attachment 6748 [details]
exc stack traces
Comment 2 Milos Kleint 2002-07-17 12:29:36 UTC
this is an exception on openide's jarfilesystem.
moving there.
Comment 3 Marek Grummich 2002-07-22 11:27:43 UTC
Set target milestone to TBD
Comment 4 Marek Grummich 2002-07-22 11:29:23 UTC
Set target milestone to TBD
Comment 5 rmatous 2002-07-22 16:35:24 UTC
Fixed in trunk (ExJarFileSystem 1.11)
Comment 6 Milan Kubec 2002-10-17 12:38:45 UTC
Verified.
Comment 7 Jaroslav Tulach 2002-12-03 09:54:17 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 8 rmatous 2002-12-03 14:58:36 UTC
Created attachment 8146 [details]
patch provided
Comment 9 rmatous 2002-12-03 15:42:02 UTC
#25731 contains patch. I think, that can be easily applied. If you need, then
I`m ready to be reviewer. Reassigned to mihmax@netbeans.org.
Comment 10 _ mihmax 2002-12-06 06:53:04 UTC
Checking in core/src/org/netbeans/core/ExJarFileSystem.java;
new revision: 1.10.38.1; previous revision: 1.10
done
Comment 11 _ mihmax 2002-12-06 07:00:12 UTC
forgot to mark resolved
Comment 12 Milan Kubec 2003-07-14 10:10:41 UTC
It seems that it doesn't work again. See attached exception, which was
thrown when I chose 'Treat as Text' on vbs file inside jar file.
Comment 13 Milan Kubec 2003-07-14 10:11:27 UTC
Created attachment 10969 [details]
exc stack trace
Comment 14 Marian Mirilovic 2004-03-15 14:11:54 UTC
reproducible in NB3.6 RC1
Comment 15 rmatous 2004-05-25 09:42:03 UTC
Won't be fixed into promo-D (ses DefultDataObject). 
Comment 16 _ mihmax 2004-05-25 11:03:30 UTC
Radek, I think it's pretty serious issue to get plainly closed as
WONTFIX. Treat as text is one of the basic functionalities!
Comment 17 rmatous 2004-05-25 12:38:42 UTC
Text files are automatically detected in promo-D. See:
http://openide.netbeans.org/issues/show_bug.cgi?id=42928

WONTFIX.
Comment 18 Milan Kubec 2005-01-21 12:48:04 UTC
Verified.