I'm trying to pack a bunch of objects together, so what I do is append their serialized versions (bytes) to a byte array. Under java's serialization routines I...
1262
Mike Goldwater
m_h_goldwater
Jul 26, 2002 7:20 am
Hi Matias, Have you tried dumping your bytestream to a printstream and examining it in say IE5 or 6? This would help verify your hypothesis that everything is ...
1263
matcuenca
Jul 26, 2002 4:35 pm
I haven't done that but I have checked the capcity on the bytestram and I can see that JSX has consummed more than needed. Let say I add 2 objects whose sizes...
1264
Brendan Macmillan
egroups_yow
Jul 28, 2002 7:27 am
Hi Mark, [PACKAGE RENAMING] ... It's true that for pure renamings (1:1 package mappings), there are no name-collisions: if you explicitly map package A to...
1265
Brendan Macmillan
egroups_yow
Jul 28, 2002 7:31 am
... Good point. There would be two ways to embed it in the source code: (1). just create and configure the mapping objects, and pass them in. (2). use XML...
1266
Brendan Macmillan
egroups_yow
Jul 28, 2002 7:58 am
Hi Mike, ... This is sensible for most cases, but what if you want to use the old classname for another class? For example, swap the names of two classes? ......
1267
Brendan Macmillan
egroups_yow
Jul 28, 2002 10:36 am
For when you have moved a specific class from one package to another, or just changed its name. It will work with as many classes as you like, but you need to...
1268
Brendan Macmillan
egroups_yow
Jul 28, 2002 11:57 am
And here's an example of package refactoring, as well as class refactoring. Both appear in the just-released JSX1.0.3.0.jar (see the web-site). There's some...
1269
noreply@...
Jul 28, 2002 2:04 pm
This email is to inform you of release '1.0.3.039; of 'Java Serialization for XML' through freshmeat.net. All URLs and other useful information can be found at...
1270
Mike Goldwater
m_h_goldwater
Jul 28, 2002 3:27 pm
Hi Brendan, Although the detailed class by class listing is not what I had in mind to start with, we can make a virtue of necessity and thus ensure that our ...
1271
Benoît Sibaud
oumph
Jul 28, 2002 6:10 pm
Hi, Just some news about JSX and GCC 3.1, as promised. [gcj 3.1 and JSX 0.9.7.0] $ /backup/gcc-3.1/bin/gcj -g --classpath=/home/DEVENV/JSX0.9.7.0.jar -c `find...
1272
Benoît Sibaud
oumph
Jul 28, 2002 8:30 pm
I forgot some tests about gcj and class files. (gcj 3.1.1) $ gcj -g --classpath=/home/DEVENV/JSX0.9.7.0 -c `find /home/DEVENV/JSX0.9.7.0/JSX -name "*.class"` ...
1273
Brendan Macmillan
egroups_yow
Jul 28, 2002 10:36 pm
Thanks for the report, Benoît! ... If these are the only problems with GCC, it is really rocking along. But I think more will appear, after these ones are...
1274
Brendan Macmillan
egroups_yow
Jul 28, 2002 10:54 pm
Hi Benoît, Hey, thanks for going to this trouble! It's really cool of you. :-) I wonder, is binary serialization (standard JOS) working in cjg? If so, who...
1275
Benoît Sibaud
oumph
Jul 28, 2002 11:28 pm
... Yes this problem disappears if I don't try to compile 14ext_src/. ... gcj is supposed to be quasi JDK1.2 compliant for now (I suspect it also supports some...
1276
Brendan Macmillan
egroups_yow
Jul 29, 2002 12:47 am
Hi Mike, ... Here's safe autodiscovery: Safety is achieved by never merging. We can achieve this for autodiscovery by specifying a list of destination packages...
1277
navneetb
Jul 29, 2002 1:00 pm
Sample Code public class TestFields{ int x; int y ; String custName; } Using JSX is it possible to serialize only x and y variables of the class and custName....
1278
Frank Montyne
frank@...
Jul 29, 2002 2:08 pm
Sure, Just use the java keyword transient. public class TestFields{ int x; int y ; transient String custName; } Hope this helps... Frank Montyne Language and...
1279
navneetb
Jul 29, 2002 3:30 pm
Thanks for the reply. Another Question: In this scenario, everyone using JSX will have to go and change their code to put the transient keyword before the ...
1280
Mark Collette
mark_collette
Jul 29, 2002 7:16 pm
I was wondering how this all works when a class' superclass is migrated to a different package? We have whole class hierarchies that we might want so migrate,...
1281
Mark Collette
mark_collette
Jul 29, 2002 7:28 pm
The amount of work for your developers to tell JSX what not to serialize would be equivalent to the amount of work for them to mark their fields transient. As...
1282
Brendan Macmillan
egroups_yow
Jul 30, 2002 12:22 am
... Good question! Thanks for this insight. I'm not sure if it will work at the moment (still experimental), but in a nutshell, it is simply that every...
1283
Brendan Macmillan
egroups_yow
Jul 30, 2002 12:53 am
Hi Frank, I think we need more information about your situation, to answer your question best... But the short answer is: no, you can't specify to JSX which...
1284
Brendan Macmillan
egroups_yow
Jul 30, 2002 7:39 am
Hi Matias, Sorry to take so long to reply, though I'm glad to hear all the other replies you got! ... Actually, what you want to do should work already in...
1285
Brendan Macmillan
egroups_yow
Jul 30, 2002 7:53 am
Hi Benoît, ... Thanks for that info! ... Thanks; yes, I'd forgotten about that... ... The motivation for the closed source is to hide clever code and to ...
1286
BFcat
Jul 30, 2002 8:30 am
Hi all, I use JSX1.0.3.1 and JSX1.0.2.0 to serialize a Document from JTextPane(in my program it is call m_monitor). The JSX's ObjOut wirte the Document to a...
1287
Mike Goldwater
m_h_goldwater
Jul 30, 2002 8:48 am
Hi BFCat, First thing to check with 1.3.1/1.4 incompatibility is whether the entire class list in the jar has been included. Test14 will not show up as a ...
1288
Brendan Macmillan
egroups_yow
Jul 30, 2002 9:26 am
Hi BFcat, ... Thanks a lot for checking out the possibilities before posting, and for the stacktrace and your source code. Unfortunately, there does seem to be...
1289
WormOnline
BFcat
Jul 30, 2002 3:30 pm
Sorry for my bad english. I have tried java.beans.XMLEncoder and XMLDecoder to serialize the Document object, but they can not work correctly. My code list...
1290
navneetb
Jul 30, 2002 5:07 pm
Hi We are trying to run our model class for the first time . Serialize it . (a) Save the XML file after verifying that it is a good object (Everything is as...