Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Handle sealed classes in check for non-cyclic types #134

Closed
wants to merge 10,000 commits into from

Conversation

phaller
Copy link
Contributor

@phaller phaller commented May 20, 2014

When deciding to delay the initialization of fields due to
possible cycles, sealed classes were not handled. This could
cause issues, such as #128, where the initialization of
a constructor parameter was delayed and thus the parameter
was null during the execution of the constructor.

phaller and others added 30 commits May 22, 2013 22:03
we should really find a principled approach to dealing with collections.
for now, for the sake of performance, I'm leaving this alone and hacking
a workaround
that's definitely unwanted on the demo
This also adds Byte and Char tests for binary pickle format.
heathermiller and others added 22 commits March 31, 2014 14:59
…acheck

Updates scalatest and scalacheck versions
- uses correct existential in FastTypeTag macro
- adds source compatibility stubs
Remove obsolete pomPostProcess from build
Introducing incremental picklers, along with a refactoring of the encoding logic of the binary format.

- The binary.Util library now contains all encoding functions.
- The simpler ArrayOutput[T] replaces EncodedOutput[T].
- The binary pickle format now uses an incremental serialization mechanism.
- Added test cases for the encoding/decoding functions of binary.Util.
- ByteArrayOutput.put() now throws java.lang.IllegalStateException.
- Remove seemingly arbitrary @inline annotations
- Remove unneeded imports
Travis build failures generate too much emails as of late :)
removes myself from the travis config
Incremental Pickling and InputStream Support
Bumping up sbt-pgp to 0.8.3 on 0.9.x branch
- Enable configuring the Scala version used for the build using
  the 'scala.version' system property.
- The default Scala version is 2.11.0 if the system property is not set.
Make Scala version used for build configurable via system property
When deciding to delay the initialization of fields due to
possible cycles, sealed classes were not handled. This could
cause issues, such as scala#128, where the initialization of
a constructor parameter was delayed and thus the parameter
was null during the execution of the constructor.
@phaller
Copy link
Contributor Author

phaller commented May 20, 2014

Review by @heathermiller

@phaller
Copy link
Contributor Author

phaller commented May 20, 2014

Fixes #128

@heathermiller
Copy link
Member

It seems that there’s an issue when a subclass has more type parameters than the sealed super class. so, i’m not sure this is ready to go in yet. Might pull in pending discussion!

@heathermiller
Copy link
Member

Ok, it's been a while. What should we do with this one? More discussion? What should happen in a subclass with more type parameters than its superclass?

@eed3si9n
Copy link
Member

eed3si9n commented Feb 5, 2015

Closing in favor of #285

@eed3si9n eed3si9n closed this Feb 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants