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 14704 - Illegal use of FileSystem.getSystemName
Summary: Illegal use of FileSystem.getSystemName
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: cpplite (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-22 21:48 UTC by Jesse Glick
Modified: 2001-09-13 22:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-08-22 21:48:29 UTC
cpplite.Utils does incorrect things with FileSystem.getSystemName.
Remember that the system name is arbitrary and need not correspond to
any file name. Use FileUtil.toFile etc. if you need to convert between
File and FileObject.
Comment 1 Jan Lahoda 2001-09-02 17:04:19 UTC
It should be fixed by this commit:
/usr/local/tigris/data/helm/cvs/repository/cpplite/src/org/netbeans/modules/cpplite/Utils.java,v 
<--  Utils.java
new revision: 1.6; previous revision: 1.5
Comment 2 Jesse Glick 2001-09-03 11:10:30 UTC
Actually upon looking at the source for Utils.java I would guess you
really want to be using FileUtil.toFile and FileUtil.fromFile which
are the official ways of converting FileObject <-> File; better to use
the central impl than do it yourself.
Comment 3 Jan Lahoda 2001-09-11 19:57:59 UTC
So, I can not use proposed methods, as CPPLite should be compatible
with release 3.2 (openide version 1.2.1) (ASAIK these methods were
added in 1.29). But maybe I should copy&paste content of these methods
(if they do not use any openide-private methods).
Comment 4 Jesse Glick 2001-09-13 22:55:41 UTC
If you are trying to keep release32 compatibility, forget about it;
it is not important. Copying and pasting will probably not help in
release32.