jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Commented] (OAK-1143) [scala] Repository init throws "illegal cyclic reference involving class ChangeDispatcher"
Date Mon, 04 Nov 2013 12:58:21 GMT

    [ https://issues.apache.org/jira/browse/OAK-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812808#comment-13812808

Michael Dürig commented on OAK-1143:

In a recent chat with [~jukkaz] he argued for removing the dependency from the {{NodeStore}}
implementations to the {{ChangeDispatcher}} by reversing the logic. We didn't consider this
too important though. Maybe this issue bumps the priority a bit. 

Jukka, could you quickly resume what you envisioned for this?

> [scala] Repository init throws "illegal cyclic reference involving class ChangeDispatcher"
> ------------------------------------------------------------------------------------------
>                 Key: OAK-1143
>                 URL: https://issues.apache.org/jira/browse/OAK-1143
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Alex Parvulescu
>            Priority: Minor
> I've been playing with Oak on Scala a bit and it looks like the latest changes introduced
a problem that makes Oak unusable.
> Basically trying to setup a repo throws the following error:
> {noformat}
> OakRepository.scala:65: error: illegal cyclic reference involving class ChangeDispatcher
> [ERROR]     new Oak(new SegmentNodeStore(new FileStore(new File(fname), 268435456, true)))
> [ERROR]                 ^
> [ERROR] one error found
> {noformat}
> I've simplified the code down to the most basic barebone repo init to make it easier
to digest [0].
> This is a Scala bug, but my point is that this used to work prior to the changedispacher
changes, so I'm thinking we could move some bits around to get it working from Scala again.
> [0] https://github.com/alexparvulescu/soak/blob/master/src/main/scala/com/pfalabs/soak/OakRepository.scala#L65

This message was sent by Atlassian JIRA

View raw message