You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by to...@apache.org on 2007/11/16 12:04:29 UTC
svn commit: r595625 - in
/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java:
net/URLConnection.java util/Date.java
Author: tonywu
Date: Fri Nov 16 03:04:25 2007
New Revision: 595625
URL: http://svn.apache.org/viewvc?rev=595625&view=rev
Log:
Apply patch for Harmony-5112 ([classlib][luni][EUT] r592434 caused regression in EUT3.3)
Modified:
harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java
harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Date.java
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java?rev=595625&r1=595624&r2=595625&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/URLConnection.java Fri Nov 16 03:04:25 2007
@@ -516,7 +516,7 @@
if (date == null) {
return defaultValue;
}
- return Util.parseDate(date);
+ return java.util.Date.parse(date);
}
/**
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Date.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Date.java?rev=595625&r1=595624&r2=595625&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Date.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/Date.java Fri Nov 16 03:04:25 2007
@@ -378,7 +378,7 @@
int commentLevel = 0;
int offset = 0, length = string.length(), state = 0;
int year = -1, month = -1, date = -1;
- int hour = -1, minute = -1, second = -1, zoneOffset = 0;
+ int hour = -1, minute = -1, second = -1, zoneOffset = 0, minutesOffset =0;
boolean zone = false;
final int PAD = 0, LETTERS = 1, NUMBERS = 2;
StringBuffer buffer = new StringBuffer();
@@ -416,6 +416,14 @@
if (sign == '+' || sign == '-') {
if (zoneOffset == 0) {
zone = true;
+ if (next == ':') {
+ minutesOffset = sign == '-' ? -Integer
+ .parseInt(string.substring(offset,
+ offset + 2)) : Integer
+ .parseInt(string.substring(offset,
+ offset + 2));
+ offset += 2;
+ }
zoneOffset = sign == '-' ? -digit : digit;
sign = 0;
} else {
@@ -531,6 +539,7 @@
} else if (year < 100) {
year += 1900;
}
+ minute -= minutesOffset;
if (zone) {
if (zoneOffset >= 24 || zoneOffset <= -24) {
hour -= zoneOffset / 100;
Re: [general] Commit messages (was Re: svn commit: r595625 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java: net/URLConnection.java util/Date.java)
Posted by Tony Wu <wu...@gmail.com>.
On 11/19/07, Jimmy,Jing Lv <fi...@gmail.com> wrote:
> Oops, sorry for the neglectfulness, I'll fix them soon.
> Thanks for your advice Mark :)
>
> 2007/11/19, Mark Hindess <ma...@googlemail.com>:
> >
> > Apologies for moaning again but I promise to stop moaning when every
> > gets it right . . .
> >
> > On 16 November 2007 at 11:04, tonywu@apache.org wrote:
> > > Author: tonywu
> > > Date: Fri Nov 16 03:04:25 2007
> > > New Revision: 595625
> > >
> > > URL: http://svn.apache.org/viewvc?rev=595625&view=rev
> > > Log:
> > > Apply patch for Harmony-5112 ([classlib][luni][EUT] r592434 caused regression
> > > in EUT3.3)
> > > [SNIP]
> >
> > The case of 'HARMONY-5112' is important. If you get it right (ALL UPPER
> > CASE) then it gets linked in to the "Subversion commits" tab in the
> > JIRA. This commit will not be listed as the case is incorrect.
got it, thanks.
> >
> > and on 18 November 2007 at 15:19, lvjing@apache.org wrote:
> > >
> > > Author: lvjing
> > > Date: Sun Nov 18 07:19:54 2007
> > > New Revision: 596091
> > >
> > > URL: http://svn.apache.org/viewvc?rev=596091&view=rev
> > > Log: Apply for Harmony-5132
> >
> > *sigh* ... this is a useless log message. Please read the "Commit
> > messages" section of:
> >
> > http://wiki.apache.org/harmony/NewCommitter
> >
> > If this wiki page is not clear, please update it.
> >
> > I've also checked in an update to this commit because two added files
> > were missing the license header.
> >
> > Regards,
> > Mark.
> >
> >
> >
>
>
> --
>
> Best Regards!
>
> Jimmy, Jing Lv
> China Software Development Lab, IBM
>
--
Tony Wu
China Software Development Lab, IBM
Re: [general] Commit messages (was Re: svn commit: r595625 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java: net/URLConnection.java util/Date.java)
Posted by "Jimmy,Jing Lv" <fi...@gmail.com>.
Oops, sorry for the neglectfulness, I'll fix them soon.
Thanks for your advice Mark :)
2007/11/19, Mark Hindess <ma...@googlemail.com>:
>
> Apologies for moaning again but I promise to stop moaning when every
> gets it right . . .
>
> On 16 November 2007 at 11:04, tonywu@apache.org wrote:
> > Author: tonywu
> > Date: Fri Nov 16 03:04:25 2007
> > New Revision: 595625
> >
> > URL: http://svn.apache.org/viewvc?rev=595625&view=rev
> > Log:
> > Apply patch for Harmony-5112 ([classlib][luni][EUT] r592434 caused regression
> > in EUT3.3)
> > [SNIP]
>
> The case of 'HARMONY-5112' is important. If you get it right (ALL UPPER
> CASE) then it gets linked in to the "Subversion commits" tab in the
> JIRA. This commit will not be listed as the case is incorrect.
>
> and on 18 November 2007 at 15:19, lvjing@apache.org wrote:
> >
> > Author: lvjing
> > Date: Sun Nov 18 07:19:54 2007
> > New Revision: 596091
> >
> > URL: http://svn.apache.org/viewvc?rev=596091&view=rev
> > Log: Apply for Harmony-5132
>
> *sigh* ... this is a useless log message. Please read the "Commit
> messages" section of:
>
> http://wiki.apache.org/harmony/NewCommitter
>
> If this wiki page is not clear, please update it.
>
> I've also checked in an update to this commit because two added files
> were missing the license header.
>
> Regards,
> Mark.
>
>
>
--
Best Regards!
Jimmy, Jing Lv
China Software Development Lab, IBM
[general] Commit messages (was Re: svn commit: r595625 - in /harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java: net/URLConnection.java util/Date.java)
Posted by Mark Hindess <ma...@googlemail.com>.
Apologies for moaning again but I promise to stop moaning when every
gets it right . . .
On 16 November 2007 at 11:04, tonywu@apache.org wrote:
> Author: tonywu
> Date: Fri Nov 16 03:04:25 2007
> New Revision: 595625
>
> URL: http://svn.apache.org/viewvc?rev=595625&view=rev
> Log:
> Apply patch for Harmony-5112 ([classlib][luni][EUT] r592434 caused regression
> in EUT3.3)
> [SNIP]
The case of 'HARMONY-5112' is important. If you get it right (ALL UPPER
CASE) then it gets linked in to the "Subversion commits" tab in the
JIRA. This commit will not be listed as the case is incorrect.
and on 18 November 2007 at 15:19, lvjing@apache.org wrote:
>
> Author: lvjing
> Date: Sun Nov 18 07:19:54 2007
> New Revision: 596091
>
> URL: http://svn.apache.org/viewvc?rev=596091&view=rev
> Log: Apply for Harmony-5132
*sigh* ... this is a useless log message. Please read the "Commit
messages" section of:
http://wiki.apache.org/harmony/NewCommitter
If this wiki page is not clear, please update it.
I've also checked in an update to this commit because two added files
were missing the license header.
Regards,
Mark.