MVN compilation issue

Bug #604126 reported by Marcus Frex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
jHears
Fix Committed
Undecided
Juha Heljoranta

Bug Description

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.

Revision history for this message
Juha Heljoranta (juha-heljoranta) wrote :

This is a bug in Sun javac:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302954

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:
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (fedora-41.b18.fc13-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Revision history for this message
Juha Heljoranta (juha-heljoranta) wrote :

Fixed. Commit 29d2365267ae4e41f17708a6ea492ccba606260b.

Changed in jhears:
status: New → Fix Committed
assignee: nobody → Juha Heljoranta (juha-heljoranta)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.