[infinispan-dev] Infinispan target JDK?

Galder Zamarreno galder at redhat.com
Thu Oct 15 10:51:19 EDT 2009



On 10/15/2009 02:07 PM, Manik Surtani wrote:
> The plan was to baseline on JDK 6.  Surely the cache-infinispan module
> can be for JDK 6 only?

> What JDK 5 APIs do you specifically rely on, that don't exist in 6?

I think the issue is that Hibernate requires JBDC 3 APIs which is why 
you can't build it with JDK6 and when you use JDK5, you see this. I 
dunno how to resolve this but I know that some modules in Hibernate 
compile against 1.4 and others against 1.5 but they might not have API 
incompabilities like 1.5 to 1.6.

Maybe Steve can help with this since he's having to somehow deal with 
this to support JDBC4?

>
> On 15 Oct 2009, at 13:03, Hardy Ferentschik wrote:
>
>> Hi Manik,
>>
>> I was just wondering which target JVM you are using for Infinispan.
>> I recall there was a discussion about this on the Core.
>> The reason I am asking is that in Hibernate we have a infinispan
>> cache provider module which depends obviously on infinispan core.
>>
>> Now I get the following error when compiling Hibernate:
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Hibernate Infinispan Integration
>> [INFO]    task-segment: [clean, install]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> [INFO] Deleting directory /Users/hardy/work/hibernate/core/trunk/
>> cache-infinispan/target
>> [INFO] snapshot org.infinispan:infinispan-core:4.0.0-SNAPSHOT:
>> checking for updates from central
>> [INFO] snapshot org.infinispan:infinispan-parent:4.0.0-SNAPSHOT:
>> checking for updates from central
>> [INFO] [enforcer:enforce {execution: enforce-java}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [WARNING] Using platform encoding (MacRoman actually) to copy
>> filtered resources, i.e. build is platform dependent!
>> [INFO] Copying 1 resource
>> [INFO] [compiler:compile {execution: default-compile}]
>> [INFO] Compiling 18 source files to /Users/hardy/work/hibernate/core/
>> trunk/cache-infinispan/target/classes
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>> /Users/hardy/work/hibernate/core/trunk/cache-infinispan/src/main/
>> java/org/hibernate/cache/infinispan/InfinispanRegionFactory.java:
>> [29,-1] cannot access org.infinispan.Cache
>> bad class file: /Users/hardy/tmp/m2/org/infinispan/infinispan-core/
>> 4.0.0-SNAPSHOT/infinispan-core-4.0.0-SNAPSHOT.jar(org/infinispan/
>> Cache.class)
>> class file has wrong version 50.0, should be 49.0
>>
>>
>> I cannot switch to JDK 6, since parts of Hibernate require JDK 5 APIs.
>>
>> Are you only going to release infinispan with target VM 1.6? Or was
>> the deploy a mistake? If so maybe you could push another snapshot.
>>
>> --Hardy
>>
>
> --
> Manik Surtani
> manik at jboss.org
> Lead, Infinispan
> Lead, JBoss Cache
> http://www.infinispan.org
> http://www.jbosscache.org
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the infinispan-dev mailing list