-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Compile using ant 1.6.1 ant JSDK 1.5
PostPosted: Sun Aug 01, 2004 10:08 am 
Newbie

Joined: Sun Aug 01, 2004 9:57 am
Posts: 4
I tried to compile the package but:

<mavila@localhost dir="/home/mavila/hibernate-2.1"/> $ ant -version
Apache Ant version 1.6.1 compiled on February 12 2004

<mavila@localhost dir="/home/mavila/hibernate-2.1"/> $ java -version
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)


<mavila@localhost dir="/home/mavila/hibernate-2.1"/> $ ant
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
[echo] Build Hibernate-2.1 (2004-08-01 03:55:49)
[mkdir] Created dir: /home/mavila/hibernate-2.1/build
[copy] Copying 9 files to /home/mavila/hibernate-2.1/build

compile:
[javac] Compiling 465 source files to /home/mavila/hibernate-2.1/build
[javac] /home/mavila/hibernate-2.1/src/net/sf/hibernate/Hibernate.java:189: 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] public static Type enum(Class enumClass) throws MappingException {
[javac] ^
[javac] /home/mavila/hibernate-2.1/src/net/sf/hibernate/cfg/Configuration.java:385: 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] Enumeration enum = jarFile.entries();
[javac] ^
[javac] /home/mavila/hibernate-2.1/src/net/sf/hibernate/cfg/Configuration.java:386: 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] while( enum.hasMoreElements() ) {
[javac] ^
[javac] /home/mavila/hibernate-2.1/src/net/sf/hibernate/cfg/Configuration.java:388: 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] ZipEntry ze = (ZipEntry) enum.nextElement();
[javac] ^
[javac] /home/mavila/hibernate-2.1/src/net/sf/hibernate/impl/AbstractQueryImpl.java:245: 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] setParameter( position, val, Hibernate.enum( val.getClass() ) );
[javac] ^
[javac] /home/mavila/hibernate-2.1/src/net/sf/hibernate/impl/AbstractQueryImpl.java:305: 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] setParameter( name, val, Hibernate.enum( val.getClass() ) );
[javac] ^
[javac] /home/mavila/hibernate-2.1/src/net/sf/hibernate/type/TypeFactory.java:169: 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] type = Hibernate.enum(typeClass);
[javac] ^
[javac] 7 errors

BUILD FAILED
/home/mavila/hibernate-2.1/build.xml:145: Compile failed; see the compiler error output for details.

Total time: 4 seconds


Current solution, using previous version of the JSDK


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.