Page 1 of 1

Name clash problem in c253b

PostPosted: Thu Apr 27, 2006 3:27 pm
by aries211
Hi all,

Have you ever met this problem in c253b?

There is an error in compiere-all/dbport/src/org/compiere/util/CCachedRowSet.java

On the line of : public class CCachedRowSet extends CachedRowSetImpl implements CachedRowSet {
The error is:
"Name clash: The method setTypeMap(Map<String,Class<?>>) of type BaseRowSet has the same erasure as setTypeMap (Map) of type RowSet but does not override it "

I think it is the problem of JDK, but I do not know how to solve it.

regards!

aries

PostPosted: Fri Apr 28, 2006 4:43 pm
by Mr_reggatta
Have you imported the rowset.jar ?!?!
Probably this is the problem.
regards
mr_reggatta

PostPosted: Sat Apr 29, 2006 11:08 am
by aries211
Thanks for your advise, mr_reggatta

There contains rowset.jar in /compiere-all/lib/

I downloaded the latest release of rowset.jar to replace the original one and the error dispeared.

Till now there is no error in my c253b.

Rrgards!

aries

PostPosted: Sun Apr 30, 2006 10:15 am
by aries211
My God !

The same error occurs again :?:

PostPosted: Sun Apr 30, 2006 12:18 pm
by red1
I got somewhat similar issues before when using older Java 1.4 instead of Java 5. U have to use Java 5 to compile.

In Eclipse u have to go to top menu bar > Window > Preferences > Java > Compiler . to make sure its Java 5.

U can have both Java JREs installed on same machine. Just do the switching as above and in the properties of the source.

PostPosted: Mon May 08, 2006 9:24 am
by aries211
Hi. red1

I'm using Java 5

Regards

PostPosted: Mon May 08, 2006 11:16 pm
by Mr_reggatta
From eclipse...
you can try to delete librarys and then re-import...
i had your same problem and now i have resolved!
;-)