EmmanuelOga / hypergraphdb

Automatically exported from code.google.com/p/hypergraphdb
1 stars 0 forks source link

Patch for /trunk/core/src/java/org/hypergraphdb/util/CloneMe.java #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
please replace "<T> T" with "Object" otherwise I am getting this in eclipse:
"Name clash: The method clone() of type CloneMe has the same erasure as clone() 
of type Object but does not override it"
alternatively, eclipse might want to fix itself and not report this in the 
above case ? :)

Original issue reported on code.google.com by atkaaz on 16 Aug 2011 at 10:46

Attachments:

GoogleCodeExporter commented 9 years ago
Are you using a Java 5 compiler? 

Original comment by borislav...@gmail.com on 17 Aug 2011 at 6:41

GoogleCodeExporter commented 9 years ago
I don't know, I think whatever compiler comes with jdk7 - which was used for 
this project - Java 7 compiler? :)
Though, any reason for using <T> T instead of Object? I could ask eclipse the 
same thing, why wouldn't <T> T resolve to object in that particular case...

Original comment by atkaaz on 18 Aug 2011 at 9:29