Comments (7)
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.
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.
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.
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.
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.
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.
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)
- Would like support for repeated accessors with out "List" appeneded
- Enter one-line summary HOT 2
- getSchema() of java.util.Properties fails HOT 2
- optimize xml format
- Enum alias support
- YamlOutput bug on repeated message fields HOT 1
- Deserializing a message which is protostuff-runtime serialized and has custom class as field HOT 3
- Visual disturbance of @Deprecated annotation HOT 12
- Support for newing object instances on Android 4.3+ devices HOT 2
- ConcurrentLinkedDeque support HOT 1
- Produces uncompilable Java when a field is called "default" HOT 4
- 1.0.7 Build error: ProtoParserTest fails HOT 2
- protostuff-parser and protostuff-compiler disagree on required version of antlr
- Optimize ProtobufOuput for small nested messages (max size of 127) HOT 1
- How can I serialize a negative int32 to the protobuf format using zigzag encoding? HOT 2
- How to Ignore Array of Null Values in JSON
- enums_by_name does not seem to be working using maven plugin
- The value of DataInput.readByte() should not be eof-checked since that method throws EOFException HOT 1
- Wrong output path is generated in Windows for .java files HOT 3
- Unable to parse proto enum containing hex constants HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protostuff-googlecode-exported.