Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#43: added support for overlapping persisters using a marker interface #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toggm
Copy link

@toggm toggm commented Feb 24, 2016

Had to adjust the persist to persistVn method in stamina-json due to the overloading of package method with default values.


private class JavaPersister[T <: AnyRef: ClassTag](key: String) extends Persister[T, V1](key) {
private class JavaPersister[T <: AnyRef: ClassTag](key: String)(typeTagOption: Option[TypeTag[T]] = None) extends Persister[T, V1](key)(typeTagOption) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this line now triggers a warning:

[warn] /home/aengelen/dev/stamina/stamina-core/src/test/scala/stamina/TestOnlyPersister.scala:15: private object in object TestOnlyPersister is never used
[warn]   private class JavaPersister[T <: AnyRef: ClassTag](key: String)(typeTagOption: Option[TypeTag[T]] = None) extends Persister[T, V1](key)(typeTagOption) {
[warn]                 ^

Not sure what that's about, as it definitely appears to be still in use...

@raboof
Copy link
Member

raboof commented May 15, 2016

Do we need to pass the Option[TypeTag] around while constructing the Persister? In https://github.com/scalapenos/stamina/tree/markedTypeTag I tried avoiding that, seemed to clean things up a bit - or am I missing something?

@toggm
Copy link
Author

toggm commented May 17, 2016

I'm currently quite busy but will look at your comments as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants