[MacPorts] #16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5
#16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5 ---------------------------------------------+------------------------------ Reporter: moody@isi.edu | Owner: macports-tickets@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
#16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5 -------------------------------+-------------------------------------------- Reporter: moody@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Component: ports Version: 1.6.0 | Keywords: objectweb-anttasks java 1.5 1.4 Port: objectweb-anttasks | -------------------------------+-------------------------------------------- Comment(by israel.faria@…): I have added a patch which upgrade this port version. The new version already sets java compilation target to 1.4 and seems to fix what the specific macports patch did. Trying to get it on svn. -- Ticket URL: <http://trac.macports.org/ticket/16899#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5 ---------------------------+------------------------------------------------ Reporter: moody@… | Owner: dave@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: java 1.5 1.4 | Port: objectweb-anttasks ---------------------------+------------------------------------------------ Changes (by macsforever2000@…): * keywords: objectweb-anttasks java 1.5 1.4 => java 1.5 1.4 * owner: macports-tickets@… => dave@… Comment: Did you get permission from the maintainer to be added as co-maintainer? This patch works fine for me, I'm just waiting for maintainer approval. -- Ticket URL: <http://trac.macports.org/ticket/16899#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5 ---------------------------+------------------------------------------------ Reporter: moody@… | Owner: dave@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Keywords: java 1.5 1.4 | Port: objectweb-anttasks ---------------------------+------------------------------------------------ Comment(by israel.faria@…): Replying to [comment:4 macsforever2000@…]:
Did you get permission from the maintainer to be added as co-maintainer? This patch works fine for me, I'm just waiting for maintainer approval. No. The mantainer is free to remove me if he wants.
-- Ticket URL: <http://trac.macports.org/ticket/16899#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16899: objectweb-anttasks 1.3 appears to require java 1.4 - does not compile in java 1.5 ---------------------------------+------------------------------------------ Reporter: moody@… | Owner: dave@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: java 1.5 1.4 Port: objectweb-anttasks | ---------------------------------+------------------------------------------ Changes (by macsforever2000@…): * status: new => closed * resolution: => fixed Comment: Fixed with r52616. -- Ticket URL: <http://trac.macports.org/ticket/16899#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts