jliu3008 / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

JPAAnnotationMetadata uses java 6 java.lang.String.isEmpty() method. search-1.1.0.jar is incompatible with java 5 #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The problem is reproducible running an application that uses generic-dao with a 
java 5 jvm.

Tip:
use "java.lang.String.length()==0" instead

Error:
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
        at com.googlecode.genericdao.search.jpa.JPAAnnotationMetadata.getEntityName(JPAAnnotationMetadata.java:75)
        at com.googlecode.genericdao.dao.jpa.JPABaseDAO._all(JPABaseDAO.java:206)
        at com.googlecode.genericdao.dao.jpa.GenericDAOImpl.findAll(GenericDAOImpl.java:61)

What version of the product are you using? On what operating system?
1.1.0

Original issue reported on code.google.com by ivano.vi...@gmail.com on 13 Sep 2012 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by dwolvert on 15 Feb 2013 at 2:06

GoogleCodeExporter commented 9 years ago
This is "fixed" in version 1.2.0 simply because this version requires Java 6 
which is required by Hibernate 4.

Original comment by dwolvert on 23 Apr 2013 at 3:00

GoogleCodeExporter commented 9 years ago
Are you joking ??? This is not a fix and, as long as this bug remain, version 
1.1.0 still require java 6.

I would have expected a 1.1.1 version with the real fix.

Original comment by ivano.vi...@gmail.com on 23 Apr 2013 at 7:50