harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko" <alexey.a.petre...@gmail.com>
Subject [classlib] HARMONY-1130: a bug or not a bug?
Date Fri, 18 Aug 2006 09:54:36 GMT

let's discuss HARMONY-1130 issue [1].
The problem there is that RI throws SecurityException from the
URLStreamHandler.setURL [2] method called from
URLStreamHandler.parseURL [3] but Harmony does not if "limit"
parameter of parseURL is less then "start" parameter. If "limit" is
greater then "start" then Harmony throws security exception too.

Investigation shown that Harmony checks "start" and "limit" parameters
in the very beginning and if "limit" is less then "start" it simply
exits since we can not parse anything in this case.

I think that this is a reasonable behavior and we should mark this
issue as "Non-bug differences from RI" and close it.

Any thoughts? Objections?

SY, Alexey

[1] HARMONY-1130: http://issues.apache.org/jira/browse/HARMONY-1130
[2] URLStreamHandler.setURL:
java.lang.String, java.lang.String, int, java.lang.String,
java.lang.String, java.lang.String, java.lang.String,
[3] URLStreamHandler.parseURL:
java.lang.String, int, int)

Alexey A. Petrenko
Intel Middleware Products Division

Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

View raw message