There are some errors while Maven compilation which are like;
Users/marcus/Development/jhears/jhears-persistence/src/main/java/org/jhears/data/BerkeleyMap.java:[149,36] type parameters of <E>E cannot be determined; no unique maximal instance exists for type variable E with upper bounds V,java.lang.Object
/Users/marcus/Development/jhears/jhears-persistence/src/main/java/org/jhears/data/BerkeleyMap.java:[176,43] type parameters of <E>E cannot be determined; no unique maximal instance exists for type variable E with upper bounds V,java.lang.Object
/Users/marcus/Development/jhears/jhears-persistence/src/main/java/org/jhears/data/BerkeleyMap.java:[396,34] type parameters of <E>E cannot be determined; no unique maximal instance exists for type variable E with upper bounds K,java.lang.Object
/Users/marcus/Development/jhears/jhears-persistence/src/main/java/org/jhears/data/BerkeleyMap.java:[403,39] type parameters of <E>E cannot be determined; no unique maximal instance exists for type variable E with upper bounds V,java.lang.Object
I fixed that by using casting operators. But that should be fixed in GeneralDAO, HibernateMap and BerkeleyMap Classes.
This is a bug in Sun javac: bugs.sun. com/bugdatabase /view_bug. do?bug_ id=6302954
http://
Confirmed with:
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)
Code compiles correctly with OpenJDK: 41.b18. fc13-x86_ 64)
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (fedora-
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)