Closed wellingtonsteve closed 8 years ago
This is great! Thanks @wellingtonsteve for the PR. I'll get that merged and push out a new version immediately
Thats's now been pushed to the Nexus OSS repo and will be available from Maven Central next time they sync (few hours usually). Version number is 2.6.2. Thanks again for your contribution
Rich, I'm only seeing version 2.6.2 for jfixture-parent, but not the underlying modules. Should it have synced by now?
Yea I just spotted that - weird. I'll look into right now.
EDIT: Only the parent is in https://oss.sonatype.org so I think something went wrong with the release
OK I've pushed a new release, 2.6.3 (it needs to be a new version number even though nothing changed). Looks like it was due to a recent change in my deployment script. Sorry for the inconvenience.
I can see the latest version in the OSS repo for all jfixture projects, https://oss.sonatype.org/service/local/repositories/releases/content/com/flextrade/jfixture/jfixture/2.6.3/ so it's just a matter of waiting for the sync
No worries, thanks for the quick response.
Some background first. We use another library, which given an interface such as the following:
generates an implementation which includes a static copy() method. Note the private constructor
If we try to use JFixture to generate an instance of TypeWithCopyFactoryMethod it fails, trying to use the copy() method instead of the create() method because the former has fewer parameters.
This is only an issue with the interface; if you change the signature to
public static TypeWithCopyFactoryMethod copy(TypeWithCopyFactoryMethod source)
it works, presumably because the circular dependency is detected andClassToFactoryMethodRelay
automatically moves on to the next method.Pull request to follow