Hi Brendan, to round this up from my side: I tried the following: class ObjIn extends JSX.ObjIn { public ObjIn(InputStream in) throws IOException { super(in); ...
Wolf Geldmacher
wolf@...
Nov 1, 2001 9:12 am
828
I've facing this problem for a while. I have programs that compile right but when I execute them they might (not always) produce this error Exception in thread...
Hi Brendan,
I just rewrite Frame1. Now JOS works fine with it,
but JSX produces exceptions. Below are Frame1 class
and its exceptions (there are also...
If I have a big byte array in my objects, then reading it with JSX is so slow it's unusuable. This sample program demontrates the problem. As the size of the...
Marti DeMore
Martha.D.DeMore@...
Nov 2, 2001 2:18 am
831
Hi Kelly, I'm glad the subclassing idea worked. I've reproduced the new problem, and it looks very tricky to diagnose - it may take a while. ... Here's the...
... Hi Marti - thank you for your truly excellent report on this! The sample code, profiling data and diagnosis made it incredibly easy and fast to fix. Your...
This email is to inform you of release '0.9.6.0' of 'Java Serialization to XML' through freshmeat.net. All URLs and other useful information can be found at...
noreply@...
Nov 2, 2001 8:20 am
834
Hi - i have added code to check primitives in the situation mentioned above. situation: Class[] c = {int.class, double.class}; serialize and deserialize it and...
Awesome. I'll try 0.9.6.0. On a positive note, this bug did reveal one of OUR bugs: we shouldn't have been serializing that big binary blob anyway!! Nothing...
Marti DeMore
Martha.D.DeMore@...
Nov 2, 2001 6:01 pm
836
Hi Matthew, Thanks a lot for catching this bug - I had no idea! It made me check to ensure that it handles arrays ok (eg: int[].class) - which happily it did....
Hi again Matthew and all, A nice little result... consider: Object o = new Class[] { boolean.class, byte.class, char.class, short.class, int.class, long.class,...
I have a custom implmentation of a HashMap that uses an integer key as the hash code. The output of the serialization is not in the order I am expecting. ...
Hi Craig, It's because JSX handles primitives and Objects differently. Primitives go to attributes, and objects to tags. The layout hides this a little. This...
Thanks for the explenation, it make sense now. I used your suggestion for the inner static class and it works very well. I took very little code to do the...
Hi Craig, ... I've wondered about that - how large is the speed improvement? Is the slower case where you wrap each integer in an Integer class? Apparently,...
Hi everyone, Here's your chance to influence the XML format of JSX.... ;-) I'm using Craig's real-world example to demonstrate some changes to the XML format...
Hi Kelly, ... I just wanted to let you know that I'm still working hard on the bug you submitted. It is just as difficult as I thought - I am not yet half...
... That doesn't support cases where the code changes, and a property's datatype is changed over time. Remember, one of the uses of JS is long-term data...
Hi Mark, Great to hear from you! Don't worry, a basic requirement of any change to the JSX format is that it remain powerful and general, and able to handle...
I have not run any real fancy benchmarks, but I think I'm seeing about a 50% speed improvement over the regular HashMap. The time and memory saving is tied to...
I would welcome a change to the format to help simplify the output. The length of the class names within the format is my big issue. Do components of an array...
... Hi Brendan ... Would it be fine with a "the present format is fine" answer ? As I said before, we use JSX as a "recovery" system. Our XML files are not...
... That sounds like a good compromise. ... Some of our arguements were the same or similar, but I couldn't let that get in the way of my rant, could I? :) ......
Hi Mark, ... This is good to hear! But both formats would do this: <ClassName obj-name="fieldName"..../> or <fieldName class="ClassName".../> ... Your points...
Hi Craig, Thanks a lot for your comments! It's good to hear what is actually important to you, rather than relying on my guesses. ;-) ... This would be an...
Hi Jean-Christophe, ... That's good to hear! ... I wonder, once this bug is fixed, if you'll start seeing ways to improve JSX? But first things first - I hope...
... From _my_ point of view the tag is the most important thing, and so arguing to give the easiest access to data means to put it into the tag. Mark...
I am writing an application where it can happen that not all the attributes of an object are specified in its xml file. In that case I want to fill the missing...
Hi Misja, ... The 0/null/false default values are an official part of the JVM specification, which JSX also follows. You can rely on omitted fields taking...