GithubHelp home page GithubHelp logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
Yep this is in the works (trunk).  Funny how I've an impl for this yesterday 
and was not able to finish it.

Thanks for reporting.

Original comment by [email protected] on 27 Jan 2011 at 11:06

  • Changed state: Accepted

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
Btw, since you want immutability (final modifier), see 
http://groups.google.com/group/protostuff/browse_thread/thread/2bd1299985224d9a

Original comment by [email protected] on 27 Jan 2011 at 11:10

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
The impl for this is somewhat finished for pojos and inline (scalar) values.
Dynamic complex types like collections and maps can be implemented but it will 
not be efficient(creating collection schemas on the fly just to serialize the 
dynamic type)


So I'm against supporting it.  The responsibility will be left to the developer 
by using a pojo (cached schema) that wraps the collection/map.

Btw, I didn't expect any of your attached file to work.  The 
clazz.newInstance() would've been thrown.

Original comment by [email protected] on 30 Jan 2011 at 11:11

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
I'm not sure what you mean that you didn't expect it to work?  It works fine, 
except for the NPE.

Original comment by [email protected] on 31 Jan 2011 at 10:05

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
I meant that your pojos had final fields, unless you probably used 
sun.reflect.ReflectionFactory.getReflectionFactory().newConstructorForSerializat
ion()?

Original comment by [email protected] on 31 Jan 2011 at 10:38

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
Nevermind .. didn't take a closer look at the source (clearly).

Original comment by [email protected] on 31 Jan 2011 at 3:27

from protostuff-googlecode-exported.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 24, 2024
Implemented with support for complex types (multi-dimensional array, maps, 
collections, etc)

Original comment by [email protected] on 7 Feb 2011 at 12:31

  • Changed state: Fixed

from protostuff-googlecode-exported.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.