Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't blindly add SimpleFieldAccess as interface to carpented classes
This fix really only applies to the testing case where, to test the carpenter as it integrates with the deserialzer we need classes not found on the class path. To do this they can be created by a second class carpenter However, the original carpenter *always* added SimpleFieldAccess as an interface to the class it would be creating. Under normal circumstances that's fine as that interface wouldn't be in the list of interfaces given to the carpenter for the class it's being asked to created. However, if as described above the carpenter schema was synthesised from a class that was carpented it will. If this happens we get an error as understandably you can't have a duplicate interface. Fix is to simply check weather the list of interfaces the schema describes and only add SimpleFieldAccess if it isn't on it
- Loading branch information