[forge-dev] in forge java model, are two different implementations of the same java class equal?

George Gastaldi ggastald at redhat.com
Sat Feb 23 13:45:36 EST 2013


IMHO, equals should return true in this case only if the class structure (including attributes, interfaces, methods) matches. The fact that a class is editable or not shouldn't matter in terms of comparison.

Em 23/02/2013, às 15:38, John Franey <jjfraney at gmail.com> escreveu:

> 
> This is with respect to providing an alternate java model implementation for binary classes defined in other projects.
> 
> Given two JavaClass with exactly the same java definition, but one comes from source code, and the other from a binary class file, (or in other terms, one is editable, the other is not), would (javaClass1.equals(javaClass2) == true)?
> 
> It likely does not matter in practice.  The likelihood of a forge developer creating as source class with a definition exactly like a binary dependency seems very low, not impossible, but low.
> 
> 
> 
> John
> 
> 
> 
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev



More information about the forge-dev mailing list