fugue.ScalaConverters and OSGI not playing nice with package structure

Issue #33 resolved
Matthew McMahon created an issue

I have just tried to use fugue.ScalaConverters with JSD

But it seems that there is an OSGI issue, as even though I have added it as a compile scope dependency, I am getting ClassNotFoundException when it tries to access it while running JIRA.

My guess is that because com.atlassian.fugue is in the OSGI Import-Package declaration (so can access Option / Either, etc in main moule) to ensure that we use the version being shared by JIRA, and the ScalaConverters is also com.atlassian.fugue then it must be expecting to load it from the environment and not from the included module?

Could this be fixed by adding it to the JIRA scala-provider-plugin (as a longer term solution), or if it is only designed to be used locally by those who want it, can we change the package?

I tested by renaming the package structure to com.atlassian.fugue.conversions and everything started up fine, so obvioulsy OSGI did not try to resolve it, as the package is not part of the Import-Package instructions.

Anyway, for the time being, it seems I need to copy the code into JSD, but hopefully can remove soon :)

Comments (4)

  1. Matthew McMahon Account Deactivated reporter

    Anything that is toJava / toScala, I guess is on the 3.0 branch only?

  2. Log in to comment