You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Steve Iolone <st...@gmail.com> on 2006/01/06 01:38:08 UTC

enum error on building 2.20

Trying to build 2.2.0  received 24 errors,  all were pointing to the 
enum used as an identifier..


F:\james-2.2.0-src>build compile

James Build System
-------------------
Buildfile: build.xml

prepare-common:
Preparing code
Created dir: F:\james-2.2.0-src\dist\james-2.2.0
Copying 2 files to F:\james-2.2.0-src\dist\james-2.2.0
Created dir: F:\james-2.2.0-src\build\src
Copying 2 files to F:\james-2.2.0-src\build\src

prepare-phoenix:
Phoenix distribution present - adjusting linefeeds and permissions, 
copying files
Copying 40 files to F:\james-2.2.0-src\dist\james-2.2.0

prepare-jdbc3:
JDBC v3 in classpath - making code JDBC 3.0 compliant

prepare-mxinfo:
Running <mxinfo/>
Generating MxInfo file: 
org\apache\james\remotemanager\RemoteManagerMBean.mxinfo
Generating MxInfo file: org\apache\james\smtpserver\SMTPServerMBean.mxinfo
Generating MxInfo file: org\apache\james\fetchpop\FetchSchedulerMBean.mxinfo
Generating MxInfo file: org\apache\james\dnsserver\DNSServerMBean.mxinfo
Generating MxInfo file: 
org\apache\james\fetchmail\FetchSchedulerMBean.mxinfo
Generating MxInfo file: org\apache\james\pop3server\POP3ServerMBean.mxinfo
Generating MxInfo file: org\apache\james\nntpserver\NNTPServerMBean.mxinfo
Generating MxInfo file: org\apache\james\JamesMBean.mxinfo

prepare-metainf:
Copying 1 file to F:\james-2.2.0-src\build\meta-inf

prepare:

compile:
Compiling James Java sources
Compiling 269 source files to F:\james-2.2.0-src\build\classes
F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:851: 
as of release 1.5,
 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
        Enumeration enum =
                    ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:855: 
as of release 1.5,
 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
        while (enum.hasMoreElements())
               ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:857: 
as of release 1.5,
 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            String header = (String) enum.nextElement();
                                     ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:910: 
as of release 1.5,
 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            Enumeration enum =
                        ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:912: 
as of release 1.5,
 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            while (enum.hasMoreElements())
                   ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:914: 
as of release 1.5,
 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                String received = (String) enum.nextElement();
                                           ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:105: 
as of release 1.5, 'enum' i
s a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            Enumeration enum = received.elements();
                        ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:106: 
as of release 1.5, 'enum' i
s a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            while (enum.hasMoreElements()) {
                   ^
F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:107: 
as of release 1.5, 'enum' i
s a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                POP3MessageInfo element = (POP3MessageInfo) 
enum.nextElement();
                                                            ^
F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:175: 
as
of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
        Enumeration enum = prop.keys();
                    ^
F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:177: 
as
of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
        while ( article == null && enum.hasMoreElements() ) {
                                   ^
F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:178: 
as
of release 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            String groupName = (String)enum.nextElement();
                                       ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:236: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                NamingEnumeration enum = members.getAll();
                                  ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:237: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                while (enum.hasMore()) {
                       ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:238: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                    result.add((String)enum.next());
                                       ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:376: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            NamingEnumeration enum  = rootCtx.search("", filter, ctls);
                              ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:378: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            if (enum.hasMore()) { // ie User is in Directory
                ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:379: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
   SearchResult newSr = (SearchResult)enum.next();
                                                   ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:503: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
 NamingEnumeration enum  = rootCtx.search("", filter, ctls);
                                 ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:505: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
            if (enum.hasMore()) { // ie User is in Directory
                ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:506: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
 chResult newSr = (SearchResult)enum.next();
                                                   ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:624: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
  NamingEnumeration enum  = rootCtx.search("", filter, ctls);
                                  ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:625: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
                if (enum.hasMore()) { // ie User is in Directory
                    ^
F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:626: 
as of rele
ase 1.5, 'enum' is a keyword, and may not be used as an identifier
(try -source 1.4 or lower to use 'enum' as an identifier)
  SearchResult sr = (SearchResult)enum.next();
                                                    ^
24 errors

BUILD FAILED
file:F:/james-2.2.0-src/build.xml:293: Compile failed; see the compiler 
error output for details.

Total time: 7 seconds
Any ideas or suggestions?

Thanks  -- Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Steve Iolone <st...@gmail.com>.
Bernd Fondermann wrote:
> Steve Iolone wrote:
>> Bernd Fondermann wrote:
>>
>>> enum has become a keyword as of Java5. James is targeted to its 
>>> predecessor Java1.4.2.
>>> you could either use a 1.4.2 compiler/SDK, or follow the first advice 
>>> given multiple times in the error output you shared with us. ;-)
>>
>>
>> Thanks, I thought of the sdk version at the gym this morning, will 
>> download 1.4.2 this morning.  Earlier thought "-source 1.4" might be a 
>> compiler option, but didn't appear so.
> 
> the compiler option should work, at least with sun's javac.
> what did it say?
> 
>>
>> Steve
>>
I'll reinstall 1.5 later and post what I find.. 1.4.2 worked fine for me.
--Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Bernd Fondermann <bf...@brainlounge.de>.
Steve Iolone wrote:
> Bernd Fondermann wrote:
> 
>> enum has become a keyword as of Java5. James is targeted to its 
>> predecessor Java1.4.2.
>> you could either use a 1.4.2 compiler/SDK, or follow the first advice 
>> given multiple times in the error output you shared with us. ;-)
> 
> 
> Thanks, I thought of the sdk version at the gym this morning, will 
> download 1.4.2 this morning.  Earlier thought "-source 1.4" might be a 
> compiler option, but didn't appear so.

the compiler option should work, at least with sun's javac.
what did it say?

> 
> Steve
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Steve Iolone <st...@gmail.com>.
Bernd Fondermann wrote:
> enum has become a keyword as of Java5. James is targeted to its 
> predecessor Java1.4.2.
> you could either use a 1.4.2 compiler/SDK, or follow the first advice 
> given multiple times in the error output you shared with us. ;-)

Thanks, I thought of the sdk version at the gym this morning, will 
download 1.4.2 this morning.  Earlier thought "-source 1.4" might be a 
compiler option, but didn't appear so.

Steve

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Bernd Fondermann <bf...@brainlounge.de>.
enum has become a keyword as of Java5. James is targeted to its 
predecessor Java1.4.2.
you could either use a 1.4.2 compiler/SDK, or follow the first advice 
given multiple times in the error output you shared with us. ;-)

Steve Iolone wrote:

> Trying to build 2.2.0  received 24 errors,  all were pointing to the 
> enum used as an identifier..
> 
> 
> F:\james-2.2.0-src>build compile
> 
> James Build System
> -------------------
> Buildfile: build.xml
> 
> prepare-common:
> Preparing code
> Created dir: F:\james-2.2.0-src\dist\james-2.2.0
> Copying 2 files to F:\james-2.2.0-src\dist\james-2.2.0
> Created dir: F:\james-2.2.0-src\build\src
> Copying 2 files to F:\james-2.2.0-src\build\src
> 
> prepare-phoenix:
> Phoenix distribution present - adjusting linefeeds and permissions, 
> copying files
> Copying 40 files to F:\james-2.2.0-src\dist\james-2.2.0
> 
> prepare-jdbc3:
> JDBC v3 in classpath - making code JDBC 3.0 compliant
> 
> prepare-mxinfo:
> Running <mxinfo/>
> Generating MxInfo file: 
> org\apache\james\remotemanager\RemoteManagerMBean.mxinfo
> Generating MxInfo file: org\apache\james\smtpserver\SMTPServerMBean.mxinfo
> Generating MxInfo file: 
> org\apache\james\fetchpop\FetchSchedulerMBean.mxinfo
> Generating MxInfo file: org\apache\james\dnsserver\DNSServerMBean.mxinfo
> Generating MxInfo file: 
> org\apache\james\fetchmail\FetchSchedulerMBean.mxinfo
> Generating MxInfo file: org\apache\james\pop3server\POP3ServerMBean.mxinfo
> Generating MxInfo file: org\apache\james\nntpserver\NNTPServerMBean.mxinfo
> Generating MxInfo file: org\apache\james\JamesMBean.mxinfo
> 
> prepare-metainf:
> Copying 1 file to F:\james-2.2.0-src\build\meta-inf
> 
> prepare:
> 
> compile:
> Compiling James Java sources
> Compiling 269 source files to F:\james-2.2.0-src\build\classes
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:851: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        Enumeration enum =
>                    ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:855: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        while (enum.hasMoreElements())
>               ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:857: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            String header = (String) enum.nextElement();
>                                     ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:910: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            Enumeration enum =
>                        ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:912: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            while (enum.hasMoreElements())
>                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:914: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                String received = (String) enum.nextElement();
>                                           ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:105: 
> as of release 1.5, 'enum' i
> s a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            Enumeration enum = received.elements();
>                        ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:106: 
> as of release 1.5, 'enum' i
> s a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            while (enum.hasMoreElements()) {
>                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:107: 
> as of release 1.5, 'enum' i
> s a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                POP3MessageInfo element = (POP3MessageInfo) 
> enum.nextElement();
>                                                            ^
> F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:175: 
> as
> of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        Enumeration enum = prop.keys();
>                    ^
> F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:177: 
> as
> of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        while ( article == null && enum.hasMoreElements() ) {
>                                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:178: 
> as
> of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            String groupName = (String)enum.nextElement();
>                                       ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:236: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                NamingEnumeration enum = members.getAll();
>                                  ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:237: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                while (enum.hasMore()) {
>                       ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:238: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                    result.add((String)enum.next());
>                                       ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:376: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            NamingEnumeration enum  = rootCtx.search("", filter, ctls);
>                              ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:378: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            if (enum.hasMore()) { // ie User is in Directory
>                ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:379: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>   SearchResult newSr = (SearchResult)enum.next();
>                                                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:503: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
> NamingEnumeration enum  = rootCtx.search("", filter, ctls);
>                                 ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:505: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            if (enum.hasMore()) { // ie User is in Directory
>                ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:506: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
> chResult newSr = (SearchResult)enum.next();
>                                                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:624: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>  NamingEnumeration enum  = rootCtx.search("", filter, ctls);
>                                  ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:625: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                if (enum.hasMore()) { // ie User is in Directory
>                    ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:626: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>  SearchResult sr = (SearchResult)enum.next();
>                                                    ^
> 24 errors
> 
> BUILD FAILED
> file:F:/james-2.2.0-src/build.xml:293: Compile failed; see the compiler 
> error output for details.
> 
> Total time: 7 seconds
> Any ideas or suggestions?
> 
> Thanks  -- Steve
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Bernd Fondermann <bf...@brainlounge.de>.
enum has become a keyword as of Java5. James is targeted to its 
predecessor Java1.4.2.
you could either use a 1.4.2 compiler/SDK, or follow the first advice 
given multiple times in the error output you shared with us. ;-)

Steve Iolone wrote:

> Trying to build 2.2.0  received 24 errors,  all were pointing to the 
> enum used as an identifier..
> 
> 
> F:\james-2.2.0-src>build compile
> 
> James Build System
> -------------------
> Buildfile: build.xml
> 
> prepare-common:
> Preparing code
> Created dir: F:\james-2.2.0-src\dist\james-2.2.0
> Copying 2 files to F:\james-2.2.0-src\dist\james-2.2.0
> Created dir: F:\james-2.2.0-src\build\src
> Copying 2 files to F:\james-2.2.0-src\build\src
> 
> prepare-phoenix:
> Phoenix distribution present - adjusting linefeeds and permissions, 
> copying files
> Copying 40 files to F:\james-2.2.0-src\dist\james-2.2.0
> 
> prepare-jdbc3:
> JDBC v3 in classpath - making code JDBC 3.0 compliant
> 
> prepare-mxinfo:
> Running <mxinfo/>
> Generating MxInfo file: 
> org\apache\james\remotemanager\RemoteManagerMBean.mxinfo
> Generating MxInfo file: org\apache\james\smtpserver\SMTPServerMBean.mxinfo
> Generating MxInfo file: 
> org\apache\james\fetchpop\FetchSchedulerMBean.mxinfo
> Generating MxInfo file: org\apache\james\dnsserver\DNSServerMBean.mxinfo
> Generating MxInfo file: 
> org\apache\james\fetchmail\FetchSchedulerMBean.mxinfo
> Generating MxInfo file: org\apache\james\pop3server\POP3ServerMBean.mxinfo
> Generating MxInfo file: org\apache\james\nntpserver\NNTPServerMBean.mxinfo
> Generating MxInfo file: org\apache\james\JamesMBean.mxinfo
> 
> prepare-metainf:
> Copying 1 file to F:\james-2.2.0-src\build\meta-inf
> 
> prepare:
> 
> compile:
> Compiling James Java sources
> Compiling 269 source files to F:\james-2.2.0-src\build\classes
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:851: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        Enumeration enum =
>                    ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:855: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        while (enum.hasMoreElements())
>               ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:857: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            String header = (String) enum.nextElement();
>                                     ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:910: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            Enumeration enum =
>                        ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:912: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            while (enum.hasMoreElements())
>                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:914: 
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                String received = (String) enum.nextElement();
>                                           ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:105: 
> as of release 1.5, 'enum' i
> s a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            Enumeration enum = received.elements();
>                        ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:106: 
> as of release 1.5, 'enum' i
> s a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            while (enum.hasMoreElements()) {
>                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\fetchpop\FetchPOP.java:107: 
> as of release 1.5, 'enum' i
> s a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                POP3MessageInfo element = (POP3MessageInfo) 
> enum.nextElement();
>                                                            ^
> F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:175: 
> as
> of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        Enumeration enum = prop.keys();
>                    ^
> F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:177: 
> as
> of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        while ( article == null && enum.hasMoreElements() ) {
>                                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\nntpserver\repository\ArticleIDRepository.java:178: 
> as
> of release 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            String groupName = (String)enum.nextElement();
>                                       ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:236: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                NamingEnumeration enum = members.getAll();
>                                  ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:237: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                while (enum.hasMore()) {
>                       ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:238: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                    result.add((String)enum.next());
>                                       ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:376: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            NamingEnumeration enum  = rootCtx.search("", filter, ctls);
>                              ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:378: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            if (enum.hasMore()) { // ie User is in Directory
>                ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:379: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>   SearchResult newSr = (SearchResult)enum.next();
>                                                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:503: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
> NamingEnumeration enum  = rootCtx.search("", filter, ctls);
>                                 ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:505: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>            if (enum.hasMore()) { // ie User is in Directory
>                ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:506: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
> chResult newSr = (SearchResult)enum.next();
>                                                   ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:624: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>  NamingEnumeration enum  = rootCtx.search("", filter, ctls);
>                                  ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:625: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>                if (enum.hasMore()) { // ie User is in Directory
>                    ^
> F:\james-2.2.0-src\src\java\org\apache\james\userrepository\UsersLDAPRepository.java:626: 
> as of rele
> ase 1.5, 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>  SearchResult sr = (SearchResult)enum.next();
>                                                    ^
> 24 errors
> 
> BUILD FAILED
> file:F:/james-2.2.0-src/build.xml:293: Compile failed; see the compiler 
> error output for details.
> 
> Total time: 7 seconds
> Any ideas or suggestions?
> 
> Thanks  -- Steve
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Stefano Bagnara <ap...@bago.org>.
Bernd Fondermann wrote:
> Should I open an issue in JIRA and try to make it at least build under
> JDK1.5?

James trunk (next 2.3.0) is already compliant.

I don't think that we need to release a 2.2.1 only to make it build with
jdk1.5. James 2.2.0 will correctly run under java5, James 2.3.0 will
also build with jdk1.5.

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Bernd Fondermann <bf...@brainlounge.de>.
Should I open an issue in JIRA and try to make it at least build under 
JDK1.5?

Stefano Bagnara wrote:

> Steve Iolone wrote:
> 
>>Trying to build 2.2.0  received 24 errors,  all were pointing to the
>>enum used as an identifier..
>>
>>compile:
>>Compiling James Java sources
>>Compiling 269 source files to F:\james-2.2.0-src\build\classes
>>F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:851:
>>as of release 1.5,
>>'enum' is a keyword, and may not be used as an identifier
>>(try -source 1.4 or lower to use 'enum' as an identifier)
>>       Enumeration enum =
>>                   ^
>>Total time: 7 seconds
>>Any ideas or suggestions?
> 
> 
> Use a jdk1.4 to build.
> James 2.2.0 sources are not jdk1.5 friendly.
> 
> Stefano
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: enum error on building 2.20

Posted by Stefano Bagnara <ap...@bago.org>.
Steve Iolone wrote:
> Trying to build 2.2.0  received 24 errors,  all were pointing to the
> enum used as an identifier..
> 
> compile:
> Compiling James Java sources
> Compiling 269 source files to F:\james-2.2.0-src\build\classes
> F:\james-2.2.0-src\src\java\org\apache\james\fetchmail\MessageProcessor.java:851:
> as of release 1.5,
> 'enum' is a keyword, and may not be used as an identifier
> (try -source 1.4 or lower to use 'enum' as an identifier)
>        Enumeration enum =
>                    ^
> Total time: 7 seconds
> Any ideas or suggestions?

Use a jdk1.4 to build.
James 2.2.0 sources are not jdk1.5 friendly.

Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org