OpenJDK bug?

13 views
Skip to first unread message

Alex Snaps

unread,
Sep 5, 2014, 10:35:47 PM9/5/14
to ehcac...@googlegroups.com
Hey all, 
My push request # just doesn't seem to compile using OpenJDK 1.6.
because of:

:core:compileTestJava/home/travis/build/ehcache/ehcache3/core/src/test/java/org/ehcache/StandaloneCacheBuilderTest.java:50: invalid inferred types for T; inferred type does not conform to declared bound(s)
inferred
: org.ehcache.StandaloneCache<K,V>
bound
(s): org.ehcache.StandaloneCache<java.lang.String,java.lang.Object
   
final StandaloneCacheBuilder<String, Object, TestStandaloneCache<String, Object>> builder = newCacheBuilder(String.class, Object.class)

But, afaict, this is all inferable... not sure about this StandaloneCache<K,V> thing there! So I guess loosing <K,V> there would make it happy... but do we want this?

afaict, on my machine, it just works fine:

$ javac -version
javac
1.6.0_65

So what shall I do? Any ideas? travis-ci has OpenJDK 1.7 as well, but no Oracle 1.6 :(

Alex

Alex Snaps

unread,
Sep 5, 2014, 10:38:29 PM9/5/14
to ehcac...@googlegroups.com
Sorry:
Pull request # is #44
while travis ci runs:

$ java -version
java version
"1.6.0_32"
OpenJDK Runtime Environment (IcedTea6 1.13.4) (6b32-1.13.4-4ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)

$ javac
-version
javac
1.6.0_32
Reply all
Reply to author
Forward
0 new messages