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.

View | Details | Raw Unified | Return to bug 160390
Collapse All | Expand All

(-)a/openide.filesystems/src/org/openide/filesystems/XMLFileSystem.java (-14 / +1 lines)
Lines 1044-1063 Link Here
1044
            
1044
            
1045
            if (url != null) {
1045
            if (url != null) {
1046
                String protocol = url.getProtocol();
1046
                String protocol = url.getProtocol();
1047
                if ("jar".equals(protocol)) {//NOI18N
1047
                if (!NETWORK_PROTOCOLS.contains(protocol)) {
1048
                    URL tmp = FileUtil.getArchiveFile(url);
1049
                    url = (tmp != null) ? tmp : url;
1050
                    protocol = url.getProtocol();
1051
                }
1052
                
1053
                if ("file".equals(protocol)) { //NOI18N
1054
                    try {
1055
                        File f = new File(URI.create(url.toExternalForm()));
1056
                        retval = (f.exists()) ? new Date(f.lastModified()) : null;
1057
                    } catch (IllegalArgumentException x) {
1058
                        Logger.getLogger(XMLFileSystem.class.getName()).log(Level.FINE, "#121777: " + url, x);
1059
                    }
1060
                } else /* #96928 */ if (!NETWORK_PROTOCOLS.contains(protocol)) {
1061
                    retval = timeFromDateHeaderField(url);
1048
                    retval = timeFromDateHeaderField(url);
1062
                }
1049
                }
1063
            }
1050
            }

Return to bug 160390