Hi there,
although the new feature is documented for version 4.4.0 (see here: https://docs.atlassian.com/fisheye-crucible/4.4.0/javadoc/com/atlassian/crucible/spi/services/ReviewService.html#getCommentResolution-com.atlassian.crucible.spi.PermId-), when I try to use this function in the Crucible API, I get:
cannot find symbol symbol: method getCommentResolution(com.atlassian.crucible.spi.PermId<com.atlassian.crucible.spi.data.VersionedLineCommentData>) location: variable reviewService of type com.atlassian.crucible.spi.services.ReviewService
I'm using Fisheye/Crucible version 4.4.0 from my local SDK. My code:
if (mComment instanceof VersionedLineCommentData) { VersionedLineCommentData versionedLineComment = (VersionedLineCommentData)mComment; reviewService.getCommentResolution(versionedLineComment.getPermaId());
So, it seems to be a bug in the API. The function is documented but not present.
Did someone have the same issue? Is there a resolution?
Are you sure you have FishEye 4.4.0 dependency in your pom.xml?
I checked binaries from 4.4.0 installation and this method is present:
$ jar -xf fecru-4.4.0/lib/atlassian-fisheye-api-4.4.0-20170412122150.jar com/atlassian/crucible/spi/services/ReviewService.class
$ javap com/atlassian/crucible/spi/services/ReviewService.class | grep getCommentResolution
public abstract com.atlassian.crucible.spi.data.CommentResolutionData getCommentResolution(com.atlassian.crucible.spi.PermId<com.atlassian.crucible.spi.data.CommentData>);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.