[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3911) [JLDAP] Java 1.5 compile failure



Full_Name: Jon Roberts
Version: 2.3.4
OS: linux
URL: ftp://ftp.openldap.org/incoming/Jon-Roberts-050801.patch
Submission from: (NULL) (70.56.104.130)


The string 'enum' is used as a private instance variable name in several schema
related classes in the com.novell.ldap package (like LDAPAttributeSchema). As of
version 1.5 of the Java programming language, 'enum' is considered a keyword and
will cause any attepts to compile under new versions of Java to fail unless
specifying the -source="1.4" option at the javac command line or excluding those
classes in the build. The submitted patch changes this instance variable name in
the relevant class files to enable successful compilation with Java 1.5.