mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

vharseko
04.01.2017 d5efc87450b7e92dea5b691931a33d87f9be0a2b
fixz deserialize error with year>9999
1 files modified
2 ■■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/GeneralizedTime.java 2 ●●●●● patch | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/GeneralizedTime.java
@@ -890,6 +890,8 @@
            // Format the year yyyy.
            int n = tmpCalendar.get(Calendar.YEAR);
            if (n>9999)
                    n=9999;
            if (n < 0) {
                throw new IllegalArgumentException("Year cannot be < 0:" + n);
            } else if (n < 10) {