[MacPorts] #28508: hibernate2 using enum as identifier .. building with wrong version of Java?
MacPorts
noreply at macports.org
Tue Feb 22 07:15:19 PST 2011
#28508: hibernate2 using enum as identifier .. building with wrong version of Java?
----------------------------------------+-----------------------------------
Reporter: vulcan_@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: java, hibernate, enum, 1.4 | Port: hibernate2
----------------------------------------+-----------------------------------
i want to work with hibernate3, but that port is also failing (ticket
#26828 ) so i tried the older version .. no go
{{{
---> Building hibernate2
Buildfile:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/build.xml
[taskdef] Could not load definitions from resource clovertasks. It could
not be found.
splash:
init:
[echo] Build Hibernate-2.1 (2011-02-22 02:03:25)
[mkdir] Created dir:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/build/classes
[copy] Copying 5 files to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/build/classes
compile:
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/build.xml:158:
warning: 'includeantruntime' was not set, defaulting to
build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 491 source files to
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/build/classes
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/src/net/sf/hibernate/Hibernate.java:188:
as of release 5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] public static Type enum(Class enumClass) throws
MappingException {
[javac] ^
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/src/net/sf/hibernate/impl/AbstractQueryImpl.java:246:
as of release 5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] setParameter( position, val, Hibernate.enum(
val.getClass() ) );
[javac] ^
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/src/net/sf/hibernate/impl/AbstractQueryImpl.java:306:
as of release 5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] setParameter( name, val, Hibernate.enum(
val.getClass() ) );
[javac] ^
[javac]
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/src/net/sf/hibernate/type/TypeFactory.java:169:
as of release 5, 'enum' is a keyword, and may not be used as an identifier
[javac] (use -source 1.4 or lower to use 'enum' as an identifier)
[javac] type =
Hibernate.enum(typeClass);
[javac] ^
[javac] 4 errors
BUILD FAILED
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1/build.xml:158:
Compile failed; see the compiler error output for details.
Total time: 9 seconds
shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_java_hibernate2/work/hibernate-2.1"
&& ant jar " returned error 1
}}}
my machine is a MacBook 13" intel Core Duo (32 bit only)
Mac OS X 10.6.6 Snow Leopard
Macports 1.9.6
what else do you need to diagnose this one pls?
--
Ticket URL: <https://trac.macports.org/ticket/28508>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list