ArrayIndexOutOfBoundsException during XMI serialization with ASCII encoding [message #1014305] |
Mon, 25 February 2013 10:03  |
Eclipse User |
|
|
|
Hello,
I have a test using a ChangeRecorder with setRecordingTransientFeatures(false).
If I try to serialize the ChangeDescriptor, using ASCII encoding, I get this error:
java.lang.ArrayIndexOutOfBoundsException: 8192
at org.eclipse.emf.ecore.xmi.impl.StringSegment.writeAscii(StringSegment.java:331)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.writeAscii(XMLSaveImpl.java:1016)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:255)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLResourceImpl.java:331)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1417)
...
I'm using the ecore.xmi version 2.8.
I don't think the error is related to the usage of ChangeRecorder at all.
The reason is that in class StringSegment, the BUFFER is set to 8192 bytes. In my scenario I have an array with more than 12000 bytes.
I'm not sure if this is an error that might not have been noticed so far (because it only occurs if the buffer is reached), or if this BUFFER was defined as a limit, and thus this is the intended behavior (I don't think so...).
Can anyone comment please? Should I create a bugzilla for this?
(Unfortunately I can't provide a test case for this, but I assume that it can easily be reproduced by setting a low buffer).
[Updated on: Mon, 25 February 2013 10:06] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03839 seconds