So to summarize so we can close this. I assume that we all agree that
the JNI spec is lacking, and that we should follow the RI as it's
reasonable behavior.
Gregory has added a patch to HARMONY-1156 and I'm going to accept and
apply that.
If there is any opposition, please speak now.
geir
Ivan
+1 for the following check:
a) offset is negative or
b) len is negative or
c) off + len > buff.length
--
Ivan
On 8/14/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote:
Ivan Volosyuk wrote:
> It looks like that it is possible to get zero bytes even at the very
> end of array. IMHO the order of
2006/8/15, Jimmy, Jing Lv <[EMAIL PROTECTED]>:
IMHO our Compatibility guidelines, if the spec is not clear, we
should follow RI. So no matter what happens to the spec(unless it
describe the detail condition of exception-thrown), it is still OK to
follow RI here, am I right?
Ok you didn't
Gregory Shimansky wrote:
On Monday 14 August 2006 23:37 Geir Magnusson Jr wrote:
I've written a test [1] myself and cannot say I completely understand the
result. With length = 0 RI 1.5 allows calling to GetArrayRegion
with start equal to array length but throws AIOOBE if start is greater
tha
Gregory Shimansky wrote:
> On Monday 14 August 2006 23:37 Geir Magnusson Jr wrote:
>>> I've written a test [1] myself and cannot say I completely understand the
>>> result. With length = 0 RI 1.5 allows calling to GetArrayRegion
>>> with start equal to array length but throws AIOOBE if start is g
Please correct me if I'm wrong, I thought what you mentioned as
"compatibility guideline" is this[1], as the url shows, it's so far only
classlib compatibility guideline, though I guess most of them makes
sense for VM, but we may need some discussion to decide, let the VM
developers speak for t
Gregory Shimansky wrote:
On Monday 14 August 2006 23:37 Geir Magnusson Jr wrote:
I've written a test [1] myself and cannot say I completely understand the
result. With length = 0 RI 1.5 allows calling to GetArrayRegion
with start equal to array length but throws AIOOBE if start is greater
than a
On Monday 14 August 2006 23:37 Geir Magnusson Jr wrote:
> > I've written a test [1] myself and cannot say I completely understand the
> > result. With length = 0 RI 1.5 allows calling to GetArrayRegion
> > with start equal to array length but throws AIOOBE if start is greater
> > than array length.
Gregory Shimansky wrote:
> On Monday 14 August 2006 20:13 Geir Magnusson Jr wrote:
>> Ivan Volosyuk wrote:
>>> It looks like that it is possible to get zero bytes even at the very
>>> end of array. IMHO the order of boundary checks makes sense here.
>> This is an interesting problem. The JNI spec
On Monday 14 August 2006 20:13 Geir Magnusson Jr wrote:
> Ivan Volosyuk wrote:
> > It looks like that it is possible to get zero bytes even at the very
> > end of array. IMHO the order of boundary checks makes sense here.
>
> This is an interesting problem. The JNI spec is clear that we should
> th
Ivan Volosyuk wrote:
> It looks like that it is possible to get zero bytes even at the very
> end of array. IMHO the order of boundary checks makes sense here.
This is an interesting problem. The JNI spec is clear that we should
throw an exception when one of the indexes isn't valid, and start =
It looks like that it is possible to get zero bytes even at the very
end of array. IMHO the order of boundary checks makes sense here.
--
Ivan
On 8/11/06, Gregory Shimansky <[EMAIL PROTECTED]> wrote:
2006/8/11, Jimmy, Jing Lv <[EMAIL PROTECTED]>:
>
> Hi,
>
> As discussed in the former threa
2006/8/11, Jimmy, Jing Lv <[EMAIL PROTECTED]>:
Hi,
As discussed in the former thread, I find that a JNI of DRLVM
(GetByteArrayRegion) differs from RI in passing parameter
(byte[count],count,0). RI (and J9 VM) returns immediately but DRLVM
throws an ArrayIndexOutOfBoundsException.
IMHO
I think we should just fix it in DRLVM, although performance-wise,
wouldn't also fixing in Java make sense too?
As Tim said, raise a JIRA.
geir
Jimmy, Jing Lv wrote:
> Hi,
>
> As discussed in the former thread, I find that a JNI of DRLVM
> (GetByteArrayRegion) differs from RI in passing pa
Jimmy, Jing Lv wrote:
> Hi,
>
> As discussed in the former thread, I find that a JNI of DRLVM
> (GetByteArrayRegion) differs from RI in passing parameter
> (byte[count],count,0). RI (and J9 VM) returns immediately but DRLVM
> throws an ArrayIndexOutOfBoundsException.
> IMHO, it is better t
Hi,
As discussed in the former thread, I find that a JNI of DRLVM
(GetByteArrayRegion) differs from RI in passing parameter
(byte[count],count,0). RI (and J9 VM) returns immediately but DRLVM
throws an ArrayIndexOutOfBoundsException.
IMHO, it is better to improve here, make it follow R
Martin Cordova wrote:
> Is it OK to send this type of feedback to the list?
ABSOLUTELY!
> please let me know
> if not, and what subject conventions should I use (is there a link
> about this?). I am not a Harmony developer, just a new user, I can
> only provide feedback from my tests
Unfortunately, imageio is not implemented yet.
On 8/10/06, Martin Cordova <[EMAIL PROTECTED]> wrote:
Oleg:
I added that line, but still cannot find the class, the JVM prints this log msg:
Loading of javax/imageio/ImageIO class failed due to
java/lang/ClassNotFoundException
Which JAR should I
Oleg:
I added that line, but still cannot find the class, the JVM prints this log msg:
Loading of javax/imageio/ImageIO class failed due to
java/lang/ClassNotFoundException
Which JAR should I check to see if this class is contained?
Regards,
Martin
On 8/10/06, Oleg Khaschansky <[EMAIL PROTECT
Hmm, probably, you should try to
set JAVA_HOME=c:\harmony\
On 8/10/06, Martin Cordova <[EMAIL PROTECTED]> wrote:
I am using the JRE snapshot (I did not build anything, just unpacked a ZIP):
pre-alpha : not complete or compatible
svn = r428649, (Aug 4 2006), Windows/ia32/msvc 1310, release bui
I am using the JRE snapshot (I did not build anything, just unpacked a ZIP):
pre-alpha : not complete or compatible
svn = r428649, (Aug 4 2006), Windows/ia32/msvc 1310, release build
This is what I downloaded:
*
http://people.apache.org/dist/incubator/harmony/snapshots/latest-jre-windows.zip
Hello,
Rick Knowles, the author of Winstone servlet engine, replied to my
email with this information:
"Martin,
I think this is because winstone will sometimes do a
outputstream.write(arr, 0, 0), because the content length is actually
zero. It's likely that this is swallowed invisibly by IBM JR
2.- Trying to generate charts using JFreeCharts (server-side):
java.lang.NoClassDefFoundError: org/apache/harmony/awt/gl/ImageSurface
at
java.awt.image.BufferedImage.createImageSurface(BufferedImage.java:659)
at java.awt.image.BufferedImage.(BufferedImage.java:352)
at org.jf
Jimmy, Jing Lv wrote:
I do some further study and test then, and find the problem was not so
easy.
Alex and I are correct that "offset <= buffer.length" here is wrong, but
the next "count <= buffer.length - offset" seems has proved its
correctness.
I have a test[1], try to write(new byte
2006/8/10, Jimmy, Jing Lv <[EMAIL PROTECTED]>:
>>
>> I've looked into this, I feel puzzled, the stack trace shows that:
>> org.apache.harmony.luni.net.SocketOutputStream.write(
SocketOutputStream.java:89)
>>
>> but there are checks for overflow:
>> if (0 <= offset && offset <= buffer.length &&
I've looked into this, I feel puzzled, the stack trace shows that:
org.apache.harmony.luni.net.SocketOutputStream.write(SocketOutputStream.java:89)
but there are checks for overflow:
if (0 <= offset && offset <= buffer.length && 0 <= count
&& count <= buffer.length - offset){
...
Jimmy, Jing Lv wrote:
> Oops, this is certainly wrong: "offset <= buffer.length","count <=
> buffer.length - offset", the equal mark should be omitted.
>
> I'll raise a JIRA for this.
>
> I'm not sure if this is the cause of the problem. So would you please
> try again if I correct it? :)
If you
Jimmy, Jing Lv wrote:
Martin Cordova wrote:
Is it OK to send this type of feedback to the list? please let me know
if not, and what subject conventions should I use (is there a link
about this?). I am not a Harmony developer, just a new user, I can
only provide feedback from my tests.
Welcome
On 10/08/06, Jimmy, Jing Lv <[EMAIL PROTECTED]> wrote:
I've looked into this, I feel puzzled, the stack trace shows that:
org.apache.harmony.luni.net.SocketOutputStream.write(SocketOutputStream.java:89)
but there are checks for overflow:
if (0 <= offset && offset <= buffer.length && 0 <= count
Martin Cordova wrote:
Is it OK to send this type of feedback to the list? please let me know
if not, and what subject conventions should I use (is there a link
about this?). I am not a Harmony developer, just a new user, I can
only provide feedback from my tests.
Welcome! I think everyone here
Is it OK to send this type of feedback to the list? please let me know
if not, and what subject conventions should I use (is there a link
about this?). I am not a Harmony developer, just a new user, I can
only provide feedback from my tests.
I am running a small webapp, using Winstone servl
31 matches
Mail list logo