Re: [general] TLP transition - site has been moved, redirect in place

2006-11-15 Thread Spark Shen
o change the mail address "harmony-dev@incubator.apache.org" to "[EMAIL PROTECTED]" or so tomorrow? -- Spark Shen China Software Development Lab, IBM

Re: Behaving differently than RI

2006-11-06 Thread Spark Shen
Alexey Petrenko 写道: 2006/11/6, Spark Shen <[EMAIL PROTECTED]>: Alexey Petrenko 写道: > Hi, Mike. > > You can find compatybility guideline for Harmony here: > http://incubator.apache.org/harmony/subcomponents/classlibrary/compat.html > > > According to your testca

Re: Behaving differently than RI

2006-11-05 Thread Spark Shen
nce is that Harmony's underlying implementation is taken from ICU which supports options other than what is specified by the RI. Should this difference be considered a bug? Thanks, Mike Ringrose -- Spark Shen China Software Development Lab, IBM

Re: [classlib][luni]HttpURLConnection.getRequestProperty(String) and HttpURLConnection.getRequestProperties() should throw IllegalStateException while connected or not?

2006-11-01 Thread Spark Shen
harm to get properties for request after connected, I will still follow RI although the manner is a little odd if no one objects. Leo Li China Software Development Lab, IBM -- Spark Shen China Software Development Lab, IBM

Re: [classlib][IBMVME]the return value of java.exe

2006-10-29 Thread Spark Shen
cho %errorlevel%", we got 1 of RI, -1 of DRLVM and 0 for IBMVM. a testcase of apache ant failed for this issue. -- Spark Shen China Software Development Lab, IBM

Re: [announcement] Apache Board approved Apache Harmony as a Top Level Project of the ASF

2006-10-25 Thread Spark Shen
. Thanks all! geir -- Spark Shen China Software Development Lab, IBM

Re: [general] Announcing newest members of the Harmony PPMC

2006-10-24 Thread Spark Shen
g them (and then tell them to get back to work...) :) The Harmony PPMC -- Spark Shen China Software Development Lab, IBM

Re: Harmony passes 94% on derby tests.

2006-10-23 Thread Spark Shen
the test suites themself to lift up the test rate on harmony? Best regards -- Spark Shen China Software Development Lab, IBM

Re: [vote] Graduate Apache Harmony podling from the Incubator

2006-10-23 Thread Spark Shen
30 PM eastern, + delta for mail outage. Thanks geir - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark Shen China Software Development Lab, IBM

Re: [classlib][luni] java.io.File bug?

2006-10-20 Thread Spark Shen
Tony Wu 写道: you mean it fails when f.setReadOnly();? Hi Tony: No, setReadOnly is used to change the access privilege. After this change harmony and RI behaves differently. Best regards On 10/20/06, Spark Shen <[EMAIL PROTECTED]> wrote: Hi All: When login as 'root'

[classlib][luni] java.io.File bug?

2006-10-20 Thread Spark Shen
different file object on many different file system, would any one test File behavior on other file systems. Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmon

Re: [classlib][kernel]A bug or non-bug difference?

2006-10-19 Thread Spark Shen
ny Wu China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark

Re: [classlib][regex|luni] build break

2006-10-18 Thread Spark Shen
On 10/13/06, Spark Shen <[EMAIL PROTECTED]> wrote: Hi Anton: There are still two problems here: 1. Error message printed out on Harmony in console: java.util.regex.PatternSyntaxException: unmatched ) near index: 1 b)a ^ java.util.regex.PatternSyntaxException: unmatched ) near inde

Re: [announce] New Apache Harmony Committers : Oliver Deakin, Richard Liang, Alexey Petrenko, Gregory Shimansky, Alexey Varlamov, Alexei Zakharov

2006-10-16 Thread Spark Shen
he required ACQs and BCC. Again, thanks for your hard work so far, and welcome. The Apache Harmony PPMC - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: [build] build failed with latest harmony classlib

2006-10-16 Thread Spark Shen
now, thank you. Best regards On 10/16/06, Spark Shen <[EMAIL PROTECTED]> wrote: Nathan Beyer 写道: > try to either a 'rebuild' or 'clean' then 'build' I tried rebuild, but still fail [mkdir] Created dir: C:\spark\harmony\build\classes [javac] Since compiler

Re: [build] build failed with latest harmony classlib

2006-10-16 Thread Spark Shen
or outpu t for details. Total time: 1 minute 9 seconds -- Best regards, Andrew Zhang - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [classlib]Self-host of Derby

2006-10-16 Thread Spark Shen
-- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark Shen China Software Development Lab, IBM --

Re: [classlib] quicker reporting of test failures/errors (was Re: svn commit: r463824 - /incubator/harmony/enhanced/classlib/trunk/make/build-test.xml)

2006-10-16 Thread Spark Shen
cribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe

Re: [classlib][luni]Runtime.exec fails on Linux

2006-10-16 Thread Spark Shen
lopment Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark Shen China Software Deve

Re: [classlib][regex|luni] build break

2006-10-12 Thread Spark Shen
gt; java.util.regex.PatternSyntaxException: unmatched ) near index: 5 > bbg())a > ^ > java.util.regex.PatternSyntaxException: unmatched ) near index: 7 > cdb(?i))a > ^ > are printed in the testCompileStringint(). > This test is needed to verify that appropriate exceptions are

Re: Hello everyone

2006-10-12 Thread Spark Shen
on this project. Refer to http://wiki.apache.org/harmony Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL

Re: [classlib]97.16% tests of Apache Ant passed on Harmony

2006-10-12 Thread Spark Shen
Tony Wu 写道: > just one test failure on RI > > On 10/12/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> Tony Wu 写道: >> > I have tried the Apache ant 1.6.5 on lateset harmony classlib on Win32 >> > system. It got 97.16% passed, seems not bad ;-) >> > I&#

Re: [classlib][regex|luni] build break

2006-10-12 Thread Spark Shen
, I could not locate where these error message comes from: java.util.regex.PatternSyntaxException: unmatched ) near index: 1 b)a ^ java.util.regex.PatternSyntaxException: unmatched ) near index: 4 bcde)a ^ java.util.regex.PatternSyntaxException: unmatched ) near index: 5 bbg())a ^ java.util.regex.PatternSyntaxException: un

Re: [classlib][regex|luni] build break

2006-10-12 Thread Spark Shen
... I corrected the patch and attached it to the issue. I verified that regex and luni tests pass normally with the patch applied. Thanks, Anton OK, I will check it ASSP. Best regards -- Spark Shen China Software Development Lab, IBM

Re: [classlib]97.16% tests of Apache Ant passed on Harmony

2006-10-12 Thread Spark Shen
http://wiki.apache.org/harmony/Apache_Ant Anyone have interest are welcome to join me:) Hi Tony: What is pass rate of RI? Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/ha

[classlib][luni] Tweaked native method name in file

2006-10-11 Thread Spark Shen
p; S_IROTH) != 0; This way, code is more readable and the method name getPlatformIsReadable semantically matches it implemantation. (The original name getPlatformIsWriteOnly seems not consistent with its implmentation, correct me if I am wrong). If no one objects, I want to supply a patch to do th

Re: [General]Do we need an instruction of trying HDK on applications?

2006-10-10 Thread Spark Shen
assLibrary Dive into the result to find if it is a bug of Harmony. Raise JIRA or post on mailing list if necessary. something needs attention, 1.Make sure you are running right JDK. 2.Record any special settings&steps on harmony wiki. Suggestions? Comments? Additions? +1 Best regards -- S

Re: [classlib][regex|luni] build break

2006-10-10 Thread Spark Shen
Spark Shen 写道: Tim Ellison 写道: So I checked in a patch for HARMONY-688's regex fix, and it passed the regex unit tests, but causes the existing luni tests to fail in java.util.Scanner. I've not figured out the base cause of the failure so I've backed out the changes. Regar

Re: [classlib][regex|luni] build break

2006-10-09 Thread Spark Shen
ince in Scanner implementation, the pattern "(\\p{javaDigit})++" is heavily utilized to recognize integer numbers, then many of Scanner tests fail. Greedy quantifiler here works fine. Would any regular expression guru look at this issue? Best regards -- S

Re: [classlib][regex|luni] build break

2006-10-09 Thread Spark Shen
Spark Shen 写道: Tim Ellison 写道: So I checked in a patch for HARMONY-688's regex fix, and it passed the regex unit tests, but causes the existing luni tests to fail in java.util.Scanner. I've not figured out the base cause of the failure so I've backed out the changes. Regards

Re: [classlib][regex|luni] build break

2006-10-09 Thread Spark Shen
l look into the issue. Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [classlib][test]Deal with un-deleted temp files created in tests

2006-09-28 Thread Spark Shen
ore such files to deal? Thanks! If no objection, I'll raise JIRAs and fix them. That would be great, go ahead. -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.

Re: [classlib][test]Deal with un-deleted temp files created in tests

2006-09-27 Thread Spark Shen
l? Thanks! Put them in places where are appropriate according to various guide lines. Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe,

Re: [drlvm] NPE is thrown when the kernel tests are run on Windows at revision 448448

2006-09-26 Thread Spark Shen
rmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.ht

Re: [drlvm] NPE is thrown when the kernel tests are run on Windows at revision 448448

2006-09-22 Thread Spark Shen
il: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Non-bug difference]? JIRA-1126

2006-09-22 Thread Spark Shen
the component to non-bug difference. Best regards This means that #1126 is, actually, a bug. Am I correct? On 9/21/06, Spark Shen <[EMAIL PROTECTED]> wrote: > [snip] > > > > > > >>Vladimir Ivanov > > <http://issues.apache.org/jira/secure/ViewProfile.j

Re: [drlvm] NPE is thrown when the kernel tests are run on Windows at revision 448448

2006-09-21 Thread Spark Shen
Thank you, I am trying :-). 2006/9/22, Vladimir Gorr <[EMAIL PROTECTED]>: On 9/22/06, Spark Shen <[EMAIL PROTECTED]> wrote: > > Vladimir Gorr 写道: > > When I roll away the latest changes for Character.java (H-1500 *Refactor > > some methods in java.lang.Character*)

Re: [drlvm] NPE is thrown when the kernel tests are run on Windows at revision 448448

2006-09-21 Thread Spark Shen
se we will be very hard to catch any errors like this. Any > thoughts? > > Thanks, > Vladimir. > > > On 9/21/06, Vladimir Gorr <[EMAIL PROTECTED]> wrote: >> >> >> >> On 9/21/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> > >&g

Re: [Non-bug difference]? JIRA-1126

2006-09-21 Thread Spark Shen
ecial handling for file system is needed. Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[Non-bug difference]? JIRA-1126

2006-09-21 Thread Spark Shen
(special handling for Win should be added) [ Show » <http://issues.apache.org/jira/browse/HARMONY-1126> ] Vladimir Ivanov <http://issues.apache.org/jira/secure/ViewProfile.jspa?name=vladimir> [09/Aug/06 09:05 PM] unit test. Seems, that patch will be system dependent (special han

Re: [General]Different SerialVersionID between RI and Harmony

2006-09-20 Thread Spark Shen
Stepan Mishura 写道: > On 9/21/06, Spark Shen wrote: >> >> Tony Wu 写道: >> > I had a look at the comparison result on kaffe.org[1] and I'm very >> > glad to see it had fully achieved the 90 percent code coverage in this >> > September :) >> > I

Re: [drlvm] NPE is thrown when the kernel tests are run on Windows at revision 448448

2006-09-20 Thread Spark Shen
:3078) [junit] at java.util.Properties.load(Properties.java:378) [junit] at java.util.PropertyResourceBundle.( PropertyResourceBundle.java:44) snipped Does anybody observe this issue? As for Linux all works fine. I am looking into this issue. Best regards Thanks, Vladimir. -- Spark Shen China

Re: [General]Different SerialVersionID between RI and Harmony

2006-09-20 Thread Spark Shen
l join you to supply patch for them. Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-20 Thread Spark Shen
Nathan Beyer 写道: > >> -Original Message- >> From: Spark Shen [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, September 20, 2006 9:39 PM >> To: harmony-dev@incubator.apache.org >> Subject: Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw >&g

Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-20 Thread Spark Shen
etter fix this problem. :-) >> >> >> On 9/20/06, Alexey Petrenko <[EMAIL PROTECTED]> wrote: >> >>> Are you trying to say that the methods in Harmony can use only methods >>> used in corresponding RI implementations? >>> >>> 2006/9/2

Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-20 Thread Spark Shen
etter fix this problem. :-) >> >> >> On 9/20/06, Alexey Petrenko <[EMAIL PROTECTED]> wrote: >> >>> Are you trying to say that the methods in Harmony can use only methods >>> used in corresponding RI implementations? >>> >>> 2006/9/2

Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-20 Thread Spark Shen
better fix this problem. :-) On 9/20/06, Alexey Petrenko <[EMAIL PROTECTED]> wrote: > > Are you trying to say that the methods in Harmony can use only methods > used in corresponding RI implementations? > > 2006/9/20, Spark Shen <[EMAIL PROTECTED]>: > > Sp

Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-19 Thread Spark Shen
cific case before considering it as a rule, this is not yet another "reverse engineering", the testcase is clear, without injection or reflection, and the method under test is a constructor which invokes a public method, so that user may have risk cannot to init their subclass of HashMap. > &

Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-19 Thread Spark Shen
regards 2006/9/20, Spark Shen <[EMAIL PROTECTED]>: Spark Shen 写道: > Hi : > Following is the discussion about JIRA 1492, shall we discuss it here? > > public class SubMapTest extends TestCase { > public void testSubclass() { > HashMap map = new HashMap(); > map.put("a&qu

Re: [classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-19 Thread Spark Shen
Spark Shen 写道: Hi : Following is the discussion about JIRA 1492, shall we discuss it here? public class SubMapTest extends TestCase { public void testSubclass() { HashMap map = new HashMap(); map.put("a", "a"); SubMap map2 = new SubMap(map); // Harmony will throw an unexpe

[classlib][luni] JIRA 1492 Constructor of HashMap throw unexpected exception

2006-09-19 Thread Spark Shen
not sure I would consider this a valid issue. What's a real use case for this type of sub-classing? <http://issues.apache.org/jira/secure/ViewProfile.jspa?name=spark+shen>>Spark Shen >What if change the RuntimeException to UnsupportedOperationException? [ Show » <http://issue

re: [jira] Commented: (HARMONY-1110) [classlib][text] ChoiceFormat(String) pattern parser differs from RI

2006-09-19 Thread Spark Shen
9411.main(bug9411.java:17) Harmony java.lang.IllegalArgumentException at java.text.ChoiceFormat.applyPattern(ChoiceFormat.java:127) at java.text.ChoiceFormat.(ChoiceFormat.java:66) at bug9411.main(bug9411.java:7) 2.0#ok #ab 2.0#ok spark shen &l

Re: [classlib][build] failure?

2006-09-18 Thread Spark Shen
regards -Nathan -Original Message- From: Spark Shen [mailto:[EMAIL PROTECTED] Sent: Monday, September 18, 2006 8:49 PM To: harmony-dev@incubator.apache.org Subject: [classlib][build] failure? Hi All: When building today's(Sep 19, r447671) classlib on window xp, I got the foll

[classlib][build] failure?

2006-09-18 Thread Spark Shen
error occurred while executing this line: C:\spark\harmony\make\properties.xml:258: exec returned: 2 Could any one check it? Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/h

Re: [General]Is there an agreement on different order of throwing Exceptions between RI and Harmony?

2006-09-18 Thread Spark Shen
Andrew. Where it's impossible, just let it go. Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED

[OLD JIRA]Deal with 780 866 1367 according to discussion

2006-09-13 Thread Spark Shen
nd of course, I will comment it on the JIRA. The patch acompany JIRA 1367 has not any test cases and already outdated, the patch should also be renewed. Best regards -- Spark Shen China Software Development Lab, IBM --

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-13 Thread Spark Shen
Alexey Varlamov 写道: > 2006/9/13, Spark Shen <[EMAIL PROTECTED]>: >> Nathan Beyer 写道: >> > Here are a few things that I think might help with getting through >> some of >> > the older outstanding issues, as well as new ones. >> > >> > * If

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-12 Thread Spark Shen
Geir Magnusson Jr. 写道: > Spark Shen wrote: > >> Paulex Yang 写道: >> >>> Nathan Beyer wrote: >>> >>> >>>> Here are a few things that I think might help with getting through some of >>>> the older outstanding issu

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-12 Thread Spark Shen
uesday, September 12, 2006 10:26 PM >> To: harmony-dev@incubator.apache.org >> Subject: Re: [classlib]volunteer to supply patches for old JIRAs >> >> On 9/13/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> >>> Tony Wu 写道: >>> >>&g

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-12 Thread Spark Shen
just close it or leave it as-is. > And further, if possible, I suggest to look at related JIRAs in one run, > for example, there may be several issues/patches related to > ObjectOutputStream, if you fixed/updated one, another patch may be > outdated, a better way is to link them and consider them tog

Re: svn commit: r442438 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang: MathTest.java StrictMathTest.java

2006-09-12 Thread Spark Shen
Nathan Beyer 写道: -Original Message- From: Spark Shen [mailto:[EMAIL PROTECTED] +assertEquals("Should return -0.0", -0.0, Math.cbrt(-0.0), 0D); This assertion is not correct here. The spec of java.lang.Math.cbrt(double) says: 'If the argument is

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-12 Thread Spark Shen
there may be several issues/patches related to > ObjectOutputStream, if you fixed/updated one, another patch may be > outdated, a better way is to link them and consider them together. > It's a good idea. I have already see many JIRAs linked -- Spark Shen China Software Development L

Re: svn commit: r442438 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/luni/tests/java/lang: MathTest.java StrictMathTest.java

2006-09-12 Thread Spark Shen
(0.0)); +.tanh(Double.NEGATIVE_INFINITY), 0D); +assertEquals("Should return +0.0", +0.0, StrictMath.tanh(+0.0), 0D); +assertEquals("Should return -0.0", -0.0, StrictMath.tanh(-0.0), 0D); +assertEquals("Should return 0.0", 0.0, Strict

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-12 Thread Spark Shen
gt; > > On 9/13/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> >> Andrew Zhang 写道: >> > On 9/13/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> >> >> >> Tony Wu 写道: >> >> > Hi all, >> >> > I noticed there're

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-12 Thread Spark Shen
Andrew Zhang 写道: > On 9/13/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> >> Tony Wu 写道: >> > Hi all, >> > I noticed there're many unresolved JIRAs posted so long time. I >> > purpose to >> > dive into and find whether it is in

Re: [classlib]volunteer to supply patches for old JIRAs

2006-09-12 Thread Spark Shen
start from the middle. :-) Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [build] anybody seeing MathTest failure?

2006-09-12 Thread Spark Shen
; Thanks, Mikhail - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark Shen China Software Development Lab, IBM --

Re: [classlib][luni]difference between RI and ICU

2006-09-12 Thread Spark Shen
ICU team. Should I handle the U+2007 by ourselves to follow RI or just document this problem in testcase? IMO, it's natural to follow RI, and the challenge is to fix it gracefully with ICU implementation. -- Spark Shen China Software Development Lab, IBM -

Re: [classlib][luni] Upgrade java.lang.Math java.lang.StrictMath

2006-09-11 Thread Spark Shen
Robert Hu 写道: Tony Wu 写道: Great news! go ahead :) On 9/11/06, Spark Shen <[EMAIL PROTECTED]> wrote: Hi All: There are some newly added methods of class java.lang.Math/java.lang.StrictMath in JDK 1.5(compared with JDK 1.4), but not implemented in Harmony. They are * *

[classlib][luni] Upgrade java.lang.Math java.lang.StrictMath

2006-09-11 Thread Spark Shen
ement them if no one objects. Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [classlib][luni] A problem about behavior of EnumMap

2006-08-29 Thread Spark Shen
Paulex Yang 写道: Spark Shen wrote: Spark Shen 写道: I guess on RI, the returned iterator maintains a reference to current entry and returns this reference in iter.next() method. I do not think RI's behavior makes sense here. So I suggest not to follow RI on the behavior. I want to adop

Re: [classlib][luni] A problem about behavior of EnumMap

2006-08-29 Thread Spark Shen
Spark Shen 写道: I guess on RI, the returned iterator maintains a reference to current entry and returns this reference in iter.next() method. I do not think RI's behavior makes sense here. So I suggest not to follow RI on the behavior. I want to adopt the behavior described below becau

Re: [classlib] Sun compiler change?

2006-08-28 Thread Spark Shen
Alexey Varlamov 写道: > 2006/8/29, Spark Shen <[EMAIL PROTECTED]>: >> Krzysztof Sobolewski 写道: >> > Spark Shen wrote: >> > >> > >> >> Did you (refer to thread [app] ant with ecj) put >> >> >> >> Eclipse compiler JAR on Ant

Re: [classlib] Sun compiler change?

2006-08-28 Thread Spark Shen
Krzysztof Sobolewski 写道: Spark Shen wrote: Did you (refer to thread [app] ant with ecj) put Eclipse compiler JAR on Ant's execution classpath to execute the javac task. If so, may be that's why It always gives you "unchecked cast" warning, no errors. Well, I c

Re: [classlib] Sun compiler change?

2006-08-28 Thread Spark Shen
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [classlib] Sun compiler change?

2006-08-28 Thread Spark Shen
Krzysztof Sobolewski 写道: Spark Shen wrote: Did you (refer to thread [app] ant with ecj) put Eclipse compiler JAR on Ant's execution classpath to execute the javac task. If so, may be that's why It always gives you "unchecked cast" warning, no errors. Well, I c

Re: [classlib] Sun compiler change?

2006-08-28 Thread Spark Shen
Krzysztof Sobolewski 写道: Spark Shen wrote: As far as I understand generics, SomeClass and SomeClass, where B extends A, *are* incompatible (per the spec). Generic types are not polymorphic. The problematic line IMO should read: EnumSet set = (EnumSet)collection; Do you mean to

Re: [classlib] Sun compiler change?

2006-08-28 Thread Spark Shen
Krzysztof Sobolewski 写道: Spark Shen wrote: As far as I understand generics, SomeClass and SomeClass, where B extends A, *are* incompatible (per the spec). Generic types are not polymorphic. The problematic line IMO should read: EnumSet set = (EnumSet)collection; Do you mean to

Re: [classlib] Sun compiler change?

2006-08-28 Thread Spark Shen
Krzysztof Sobolewski 写道: Spark Shen wrote: Seems that in new version of JDK, EnumSet and (E was previously stated as >) are not considered compatible. After changing EnumSet set = (EnumSet)collection; into EnumSet set = (EnumSet)collection; , compilation using ant in command line succe

[classlib][luni] A problem about behavior of EnumMap

2006-08-28 Thread Spark Shen
ference to current entry and returns this reference in iter.next() method. I do not think RI's behavior makes sense here. So I suggest not to follow RI on the behavior. Best regards -- Spark Shen China Software Development Lab, IBM

Re: [classlib] Sun compiler change?

2006-08-27 Thread Spark Shen
Alexey Petrenko 写道: 2006/8/28, Spark Shen <[EMAIL PROTECTED]>: Richard Liang 写道: > > > Richard Liang wrote: >> >> >> Nathan Beyer wrote: >>> Is anyone else using the latest Sun JDK, v5.0 Update 8 on Windows? >>> >>> >>> >

Re: [classlib] Sun compiler change?

2006-08-27 Thread Spark Shen
n I compile in Eclipse 3.2 there's no error. -Nathan -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [classlib][luni] Suspicious behavior of java.util.EnumSet

2006-08-21 Thread Spark Shen
The curious thing is whether we should behave as RI since it says "it > may or > may not show the effects of any modifications to the set that occur while > the iteration is in progress". > > So, what is your opinion? Should we follow RI on this behavior? Best regar

Re: [classlib][luni] Suspicious behavior of java.util.EnumSet

2006-08-20 Thread Spark Shen
e the iteration is in progress." Best regards On 8/19/06, Spark Shen <[EMAIL PROTECTED]> wrote: Hi All: The following behavior of RI java.util.EnumSet seems odd. Do you have any opinion on whether it is a bug of RI? import java.util.EnumSet; import java.util.Iterator; public class

Re: [classlib][luni] Suspicious behavior of java.util.EnumSet

2006-08-20 Thread Spark Shen
Jimmy, Jing Lv 写道: Spark Shen wrote: Hi All: The following behavior of RI java.util.EnumSet seems odd. Do you have any opinion on whether it is a bug of RI? import java.util.EnumSet; import java.util.Iterator; public class Test { static enum EnumFoo { a, b, } public static void main(String

[classlib][luni] Suspicious behavior of java.util.EnumSet

2006-08-19 Thread Spark Shen
)); // The output value is 64 System.out.println(set.size()); } } IMHO, when (1) is executed, an IllegalStateException should be thrown out, since the element EnumFoo.a does not exist at the moment. Any thoughts? Best regards -- Spark Shen China Software Development Lab, IBM

Re: [classlib][luni] On RI, constructor of EnumMap -- EnumMap(Class keyType) throws unspecified NullPointerException

2006-08-15 Thread Spark Shen
Alexey Varlamov 写道: 2006/8/15, Spark Shen <[EMAIL PROTECTED]>: Hi All: Constructor of EnumMap -- EnumMap(Class keyType) behaves a little odd: I first synthesis an enum type with class body as below: enum color { blue{}, red{}, } Then constructs java.util.EnumMap(Class) using this Enu

[classlib][luni] On RI, constructor of EnumMap -- EnumMap(Class keyType) throws unspecified NullPointerException

2006-08-14 Thread Spark Shen
rException will be thrown out from the bolded line. While using enum type without a class body, no such exception will be thrown out. This behavior is unspecified on spec. IMO, this is a bug of RI. What is your opinion about this behavior? Best regards -- Spark Shen China Software Developmen

[classlib][luni] Serialization problem with EnumSet

2006-08-13 Thread Spark Shen
Hi All: After reading the serialized form of EnumSet, I found an inner class java.util.EnumSet.SerializationProxy. This class does not have any extra explaination. Does any one has any suggestion on how to deal with it? Best regards -- Spark Shen China Software Development Lab, IBM

Re: [classlib][luni] Our locale data is incomplete, and Locale("", "CD").getDisplayCountry() return different string compared with ISO3166-1

2006-08-10 Thread Spark Shen
quot;CD").getDisplayCountry()); And the displayed message is: The Democratic Republic Of Congo The same as SUN JDK 1.5, that is to say, IBM do the 'broken' thing. And I think I agree with the point: then we should do as well and note it in our "differences from spec' list B

Re: Re: [classlib][luni] Our locale data is incomplete, and Locale("", "CD").getDisplayCountry() return different string compared with ISO3166-1

2006-08-10 Thread Spark Shen
ater. So I'd say, let's go with the ISO-3166 for everything. Alex. On 10/08/06, Ilya Okomin <[EMAIL PROTECTED]> wrote: > On 8/10/06, Spark Shen <[EMAIL PROTECTED]> wrote: > > > 2006/8/10, Richard Liang <[EMAIL PROTECTED]>: > > > > >

Re: [classlib][luni] Our locale data is incomplete, and Locale("", "CD").getDisplayCountry() return different string compared with ISO3166-1

2006-08-10 Thread Spark Shen
2006/8/10, Richard Liang <[EMAIL PROTECTED]>: Spark Shen wrote: > Hi All: > Construct a locale like this: > Locale l = new Locale("", "CD"); > On RI, l.getDisplayCountry() will return "The Democratic Republic Of > Congo", > which

[classlib][luni] Our locale data is incomplete, and Locale("", "CD").getDisplayCountry() return different string compared with ISO3166-1

2006-08-10 Thread Spark Shen
l_countryCD.getDisplayCountry()); } I need to add a mapping into harmony locale data. But which? "CD"->"CONGO, THE DEMOCRATIC REPUBLIC OF THE" or "CD"->"Congo, the Democratic Republic of the" or "CD"->"The Democrat

Re: [classlib][luni] Strange serialized form of java.util.TreeMap (re JIRA harmony-1066)

2006-08-08 Thread Spark Shen
RI to deserialize SubMap, the behavior should be the same as using RI itself to serialize/deserialize SubMap. A little Tricky. :-) Best regards On 8/8/06, Spark Shen <[EMAIL PROTECTED]> wrote: > Hi, thank you for your information. > > I slightly modified my second test c

Re: [classlib][luni] Strange serialized form of java.util.TreeMap (re JIRA harmony-1066)

2006-08-08 Thread Spark Shen
release serialized form may have changed. -- Oleg On 8/7/06, Spark Shen <[EMAIL PROTECTED]> wrote: Hi: This is a long post, thanks for your patient to read it through :-) I wrote a test case as below: public void test_SubMap_Serializable() throws Exception { TreeMap map = new TreeMap(); map

[classlib][luni] Strange serialized form of java.util.TreeMap (re JIRA harmony-1066)

2006-08-06 Thread Spark Shen
to follow RI to make the returned SortedMap serializable like this? Best regards -- Spark Shen China Software Development Lab, IBM - Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail

Re: [classlib][luni] Enhance the functionalities provided by BitSet

2006-08-04 Thread Spark Shen
tion seriously.. Best regards > > On 8/4/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> Oleg Khaschansky 写道: >> > Yes, I mean exactly one long type, not array. And I think that for >> > this case the code in the BitSet and EnumSet implementation would be >>

Re: [classlib][luni] Enhance the functionalities provided by BitSet

2006-08-03 Thread Spark Shen
ld be > useful. Thank you very much for your suggestion. Best regards. > > On 8/3/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> Oleg Khaschansky 写道: >> > Hi all! >> > >> > I'd like to add to this discussion that, IMHO, implementation of the >&

Re: [classlib][luni] Enhance the functionalities provided by BitSet

2006-08-03 Thread Spark Shen
ong. Best regards > > Thank you. > -- > Oleg Khaschansky, > Intel MPD > > On 8/3/06, Spark Shen <[EMAIL PROTECTED]> wrote: >> >> Richard Liang 写道: >> > >> > >> > Spark Shen wrote: >> >> Hi All: >> >> >> >>

Re: [classlib][luni] Enhance the functionalities provided by BitSet

2006-08-03 Thread Spark Shen
Richard Liang 写道: Spark Shen wrote: Hi All: IMHO, EnumSet provides a set view of enum types. According to its spec, "Enum sets are represented internally as bit vectors". To avoid to re-invent the wheel, it could be more reasonable to utilize java.util.BitSet class to s

  1   2   >