jbossas/jboss-as — pull request #3574 by sfcoy (2012-12-04 10:28:02+00:00)
Title: AS7 4610 Add a unit test to prove the scenario and provide a code fix

This PR resolves https://issues.jboss.org/browse/AS7-4610.

It consists of:
* a basic integration test that was used to replicate the problem
* a code fix for ViewInterfaces.getPotentialViewInterfaces(Class)
* some unit tests to prove the behaviour of ViewInterfaces.getPotentialViewInterfaces(Class)

##### Note
------
As it stands, this means that the behaviour of this method and ViewInterfaces.getPotentialViewInterfaces(ClassInfo) is no longer symmetrical. The single call site of the second method follows up with super-class scanning. Changing the second method may not be considered "in scope" for this issue.