[MacPorts] #16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5

MacPorts noreply at macports.org
Fri Oct 17 15:08:28 PDT 2008


#16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in
java 1.5
---------------------------------------------+------------------------------
 Reporter:  moody at isi.edu                    |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                           |      Status:  new                                  
 Priority:  Normal                           |   Milestone:  Port Bugs                            
Component:  ports                            |     Version:  1.6.0                                
 Keywords:  objectweb-anttasks java 1.5 1.4  |        Port:  objectweb-anttasks                   
---------------------------------------------+------------------------------
 I am trying to install objectweb-anttasks 1.3 and found this:


 {{{
 --->  Configuring objectweb-anttasks
 --->  Building objectweb-anttasks with target clean jar
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-anttasks/work/ow_util_ant_tasks_1.3" &&
 ant clean jar " returned error 1
 Command output:     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-
 anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:85:
 as of release 1.5, 'enum' is a keyword, and may not be used as an
 identifier
     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
     [javac]                     for(Enumeration enum = v.elements();
 enum.hasMoreElements();) {
     [javac]                                         ^
     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-
 anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:85:
 as of release 1.5, 'enum' is a keyword, and may not be used as an
 identifier
     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
     [javac]                     for(Enumeration enum = v.elements();
 enum.hasMoreElements();) {
     [javac]                                                              ^
     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-
 anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:86:
 as of release 1.5, 'enum' is a keyword, and may not be used as an
 identifier
     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
     [javac]                             File current = new File((File)
 enum.nextElement(),
     [javac]
 ^
     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-
 anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:103:
 as of release 1.5, 'enum' is a keyword, and may not be used as an
 identifier
     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
     [javac]             for(Enumeration enum = v.elements();
 enum.hasMoreElements();) {
     [javac]                                 ^
     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-
 anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:103:
 as of release 1.5, 'enum' is a keyword, and may not be used as an
 identifier
     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
     [javac]             for(Enumeration enum = v.elements();
 enum.hasMoreElements();) {
     [javac]                                                      ^
     [javac]
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-
 anttasks/work/ow_util_ant_tasks_1.3/src/org/objectweb/util/ant/JavadocMultipleLink.java:104:
 as of release 1.5, 'enum' is a keyword, and may not be used as an
 identifier
     [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
     [javac]                     new File((File) enum.nextElement(),
     [javac]                                         ^
     [javac] 6 errors

 BUILD FAILED
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_objectweb-
 anttasks/work/ow_util_ant_tasks_1.3/build.xml:14: Compile failed; see the
 compiler error output for details.

 Total time: 0 seconds

 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/16899>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list