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 14535 - Filesystem is unmounted.
Summary: Filesystem is unmounted.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on: 14557
Blocks:
  Show dependency tree
 
Reported: 2001-08-17 14:41 UTC by Jan Zajicek
Modified: 2008-12-22 20:51 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 Jan Zajicek 2001-08-17 14:41:03 UTC
Start fresh ide. Mount following Test and openide.jar. Open the Test.java in
editor. Compile it and execure using internal execution. After the Test is
finished, check mounted filesystems. One is unmounted. Now it seems like Solaris
issue only. If reproduced on other platforms, updates will be aded.

TestCase:

public class Test {
    public static void main(String args[]) throws Exception {
        org.openide.filesystems.Repository rep =
org.openide.TopManager.getDefault().getRepository();
        org.openide.filesystems.JarFileSystem jfs = new
org.openide.filesystems.JarFileSystem();
        jfs.setJarFile(new
java.io.File("/export/home/LastNB/netbeans/modules/text.jar"));
        System.out.println(jfs + "    Valid: " + jfs.isValid());
        if (rep.findFileSystem(jfs.getSystemName()) == null) {
            System.out.println("mounting allowed");
            rep.addFileSystem(jfs);
        } else {
            System.out.println("mounting NOT allowed");
            org.openide.TopManager.getDefault().notify(new
org.openide.NotifyDescriptor("JAR already mounted!",
                                                       
"Error",org.openide.NotifyDescriptor.OK_CANCEL_OPTION,0,
                                                        new
Object[]{org.openide.NotifyDescriptor.OK_OPTION},""));
        }
        System.out.println(jfs + "    Valid: " + jfs.isValid());
    }
}
Comment 1 Jaroslav Tulach 2001-08-21 10:07:46 UTC
Due to fix of 14557 this should be fixed too.
Comment 2 Jan Zajicek 2001-08-21 13:40:29 UTC
On my Solaris it works now. Verifying, but will keep eye on it ;-)
Comment 3 Quality Engineering 2003-07-01 16:47:38 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.