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

(-)java/org/apache/naming/resources/FileDirContext.java (-3 / +5 lines)
Lines 986-991 Link Here
986
986
987
        public FileResourceAttributes(File file) {
987
        public FileResourceAttributes(File file) {
988
            this.file = file;
988
            this.file = file;
989
            getCreation();
990
            getLastModified();
989
        }
991
        }
990
992
991
        // --------------------------------------------------- Member Variables
993
        // --------------------------------------------------- Member Variables
Lines 1036-1042 Link Here
1036
        public long getCreation() {
1038
        public long getCreation() {
1037
            if (creation != -1L)
1039
            if (creation != -1L)
1038
                return creation;
1040
                return creation;
1039
            creation = file.lastModified();
1041
            creation = getLastModified();
1040
            return creation;
1042
            return creation;
1041
        }
1043
        }
1042
1044
Lines 1048-1054 Link Here
1048
         */
1050
         */
1049
        public Date getCreationDate() {
1051
        public Date getCreationDate() {
1050
            if (creation == -1L) {
1052
            if (creation == -1L) {
1051
                creation = file.lastModified();
1053
                creation = getCreation();
1052
            }
1054
            }
1053
            return super.getCreationDate();
1055
            return super.getCreationDate();
1054
        }
1056
        }
Lines 1074-1080 Link Here
1074
         */
1076
         */
1075
        public Date getLastModifiedDate() {
1077
        public Date getLastModifiedDate() {
1076
            if (lastModified == -1L) {
1078
            if (lastModified == -1L) {
1077
                lastModified = file.lastModified();
1079
                lastModified = getLastModified();
1078
            }
1080
            }
1079
            return super.getLastModifiedDate();
1081
            return super.getLastModifiedDate();
1080
        }
1082
        }

Return to bug 42503