MountainClimb / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

Incorrect exception for multiple fields of same type #172

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This should be ok:

class A {
  List<B> bList;
  List<B> anotherBList;
}

Unfortunately I was a little too aggressive with this check, so the following 
also run afoul of the check:

abstract class B {}

class C extends B {}
class D extends B {}

class A {
  List<C> cList:
  List<D> dList;
}

Original issue reported on code.google.com by max.r...@gmail.com on 10 Dec 2009 at 8:59

GoogleCodeExporter commented 8 years ago
Oops, the very first example should read "This should _not_ be ok"

Original comment by max.r...@gmail.com on 10 Dec 2009 at 9:01

GoogleCodeExporter commented 8 years ago

Original comment by max.r...@gmail.com on 10 Dec 2009 at 9:20

GoogleCodeExporter commented 8 years ago
I had such a need for two lists of objects that extend the same abstract class 
and I
was surprised that it was not supported by app engine (had to workaround that).

Glad to see you have fixed that. Going to install new version and check.

Thanks
Itzik

Original comment by itzik...@hotmail.com on 16 Dec 2009 at 7:46

GoogleCodeExporter commented 8 years ago

Original comment by max.r...@gmail.com on 26 Jan 2010 at 12:19