1. jhove2
  2. main
  3. Issues


Issue #148 resolved

Bug in InMemorySourceAccessor/InMemoryBaseModuleAccessor/...

Nicholas Clarke
created an issue

Doing the following

Source parentSrc = source.getSourceAccessor().retrieveSource(source.getParentSourceId());

Works fine using the BerkeleyDB persistence.

But does not work using the in-memory persistence. Mostly I gather because retrieving any source through an InMemorySourceAccessor will return its own wrapped Source.

public class InMemorySourceAccessor implements SourceAccessor { [...] Override public Source retrieveSource(Object key) throws JHOVE2Exception { return this.source; } }

Looking at some of the other sources it also seems to be a problem in InMemoryBaseModuleAccessor.

Comments (4)

  1. Log in to comment