Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-03 Thread Andrew Zhang
Hello Tim I think I have found where the problem is. When I ran the test with latest code, the test failed again on my machine. How lucky am I :) The failure trace[1] tells us it fails because of ServerSocketChannel.accept(). Message The socket is marked as nonblocking operation would block

Re: [classlib][nio] [question] Synchronization issue on MappedByteBuffer ?

2006-07-03 Thread Jimmy, Jing Lv
Andrew Zhang wrote: Hello everyone, I noticed there are several FIXMEs in MappedByteBufferAdapter.java, which are related to synchronization issue. Following FIXME is for getChar() method: // FIXME Need synchronization as far as the update of this.position is concerned of the following

Re: [classlib] tests.api.java.io.FileTest failures on Windows XP

2006-07-03 Thread Paulex Yang
Tim Ellison wrote: Paulex Yang wrote: Tim, Are you looking at this FileTest now? I have not had time, so if you can fix them then please go ahead. I've looked over this test, and basically I think it's the test itself can be improved. If 8.3 filename is disabled, the

Re: [classlib] trying new framework for testing serialization

2006-07-03 Thread Andrew Zhang
Hi Stepan, I tried serialization test framework, and found it's really easy to use. :) Here I have a small question: why TestCase is designed as first parameter? If I understand correctly, it's used to parse exception name. So is it the same if we simply pass the String or Class of the object

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-03 Thread Jimmy, Jing Lv
Andrew Zhang wrote: Hello Tim I think I have found where the problem is. When I ran the test with latest code, the test failed again on my machine. How lucky am I :) Lucky dog :) The failure trace[1] tells us it fails because of ServerSocketChannel.accept(). Message The socket is

Re: [continuum] BUILD FAILURE: Classlib/win.ia32 Build/Test

2006-07-03 Thread Tim Ellison
Geir Magnusson Jr wrote: do we have a list of the intermittent failures? They are reported each time to the commit list. Regards, Tim -- Tim Ellison ([EMAIL PROTECTED]) IBM Java technology centre, UK. - Terms of use :

Re: [classlib] Approval for String patch for HARMONY-719

2006-07-03 Thread Tim Ellison
No objection. Regards, Tim Nathan Beyer wrote: http://issues.apache.org/jira/browse/HARMONY-719 This issue identifies a valid bug in java.lang.String and good patch to fix it. Does anyone have any objections to applying this patch or any comments? -Nathan -- Tim Ellison

Re: [classlib][nio] [question] Synchronization issue on MappedByteBuffer ?

2006-07-03 Thread Tim Ellison
Richard Liang wrote: Hello Andrew, IMHO, if the spec does not require a class thread-safe explicitly, we may regard the class as thread-unsafe. Correct me if I'm wrong ;-) I agree -- you may assume unsafe unless spec'd otherwise. Regards, Tim Andrew Zhang wrote: Hello everyone, I

Re: [classlib] compatibility of toString

2006-07-03 Thread Tim Ellison
Andrew Zhang wrote: On 7/1/06, Alex Blewitt [EMAIL PROTECTED] wrote: On 01/07/06, Andrew Zhang [EMAIL PROTECTED] wrote: Agree. But there are always exceptions. Some toString methods have to contain some key information as spec required, for example, the size or index. Can you give

Re: [classlib] build file stuff

2006-07-03 Thread Tim Ellison
Nathan Beyer wrote: Cool, I'll use that instead. Is there any way to eliminate the junit library dependency from the command-line? Put the JUnit library into your Ant installation's 'lib' directory. Regards, Tim -Original Message- From: George Harley [mailto:[EMAIL PROTECTED] Sent:

Re: [classlib] Exception-throwing compatibility question

2006-07-03 Thread Tim Ellison
Mikhail Loenko wrote: For the example I've started this thread with it seems that complying the spec is more appropriate there. But probably there are other examples that caused that the doc was worded the given way George and Tim could you please comment? What is the concrete example?

Re: [classlib][testing] excluding the failed tests

2006-07-03 Thread Tim Ellison
Nathan Beyer wrote: How are other projects handling this? My opinion is that tests, which are expected and know to pass should always be running and if they fail and the failure can be independently recreated, then it's something to be posted on the list, if trivial (typo in build file?), or

Re: [classlib] testing guidlines -- support classes

2006-07-03 Thread Tim Ellison
Mikhail Loenko wrote: That means that all the API tests will be in the bootclasspath when impl/bootclasspath tests run? Will this run be clear enough? No I don't think that will be clear. So can you describe how the bootclasspath and classpath are set up for running each set of tests? Maybe

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Andrey Chernyshev
I didn't find the exact reason why this happens, looks like a drlvm ant scripts work differently. It could be a side effect of the recent adoption of DRLVM build for classlib binaries. The trick is that drlvm should put it's own hythread library into the deploy JRE. Before that change drlvm

Re: [classlib] compatibility of toString

2006-07-03 Thread Anton Luht
Hello, One special case: I'd suggest to test that if you specify some text as an constructor argument to a subclass of Throwable, then toString() contains that text. On 7/3/06, Tim Ellison [EMAIL PROTECTED] wrote: Andrew Zhang wrote: On 7/1/06, Alex Blewitt [EMAIL PROTECTED] wrote: On

Re: [classlib] Exception-throwing compatibility question

2006-07-03 Thread Anton Luht
Hello, There's one example that shows that not only code may contain bugs, but documentation also: 1.5.0 spec [1] says about java.io.BufferedWriter.write(String, int, int) If the value of the len parameter is negative then no characters are written. This is contrary to the specification of

Re: [classlib] Exception-throwing compatibility question

2006-07-03 Thread Chris Gray
In 1.4.2 it was a bug, but in 1.5.0 it's a feature. :-) What a difference a doc makes ... Chris On Monday 03 July 2006 14:12, Anton Luht wrote: Hello, There's one example that shows that not only code may contain bugs, but documentation also: 1.5.0 spec [1] says about

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Mark Hindess
On 3 July 2006 at 15:14, Andrey Chernyshev [EMAIL PROTECTED] wrote: I didn't find the exact reason why this happens, looks like a drlvm ant scripts work differently. It could be a side effect of the recent adoption of DRLVM build for classlib binaries. The trick is that drlvm should put

Re: [classlib] Exception-throwing compatibility question

2006-07-03 Thread Andrew Zhang
Maybe it's called javadoc bug or spec bug. :) On 7/3/06, Chris Gray [EMAIL PROTECTED] wrote: In 1.4.2 it was a bug, but in 1.5.0 it's a feature. :-) What a difference a doc makes ... Chris On Monday 03 July 2006 14:12, Anton Luht wrote: Hello, There's one example that shows that not only

Re: [classlib] Exception-throwing compatibility question

2006-07-03 Thread Chris Gray
On Monday 03 July 2006 14:33, Andrew Zhang wrote: Maybe it's called javadoc bug or spec bug. :) Looks to me very like oops, our implementation isn't according to spec, better change the spec. To be fair to Sun, fixing the implementation could have broken existing code (maybe it did, hence the

Re: [classlib] testing guidlines -- support classes

2006-07-03 Thread Mikhail Loenko
All: support classes, impl-classpath, impl-boot, api-classpath, and api-boot tests are compiled into separate directories. Support classes are compiled first, tests are compiled with support classes in the classpath. When the tests are running, support classes are accessible the same way as the

Re: [classlib] testing guidlines -- support classes

2006-07-03 Thread Tim Ellison
Mikhail Loenko wrote: All: support classes, impl-classpath, impl-boot, api-classpath, and api-boot tests are compiled into separate directories. ( TestNG looking better by the hour eh? ;-) ) Support classes are compiled first, tests are compiled with support classes in the classpath.

[classlib-drlvm] Decoupling VM and classlib - what VMI is used for?

2006-07-03 Thread Andrey Chernyshev
Hello, I've been thinking how we could achieve a better separation between VM and classlibs. I've looked how the drlvm is currently built and works with classlib: the most of dependencies are located in the drlvm's VMI module, which is implementation of a native interface between vm and class

Re: [drlvm] what's next?

2006-07-03 Thread Geir Magnusson Jr
Andrey Chernyshev wrote: On 6/29/06, Geir Magnusson Jr [EMAIL PROTECTED] wrote: Andrey Chernyshev wrote: Hello, In addition to the already proposed generic tasks like 5.0 support or concurrent GC mentioned by Ivan, I'd like to add some more specific things that might be interesting

Re: [classlib][testing] excluding the failed tests

2006-07-03 Thread Geir Magnusson Jr
Is this the case where we have two 'categories'? 1) tests that never worked 2) tests that recently broke I think that a #2 should never persist for more than one build iteration, as either things get fixed or backed out. I suppose then we are really talking about category #1, and that we

RE: [classlib] build file stuff

2006-07-03 Thread Nathan Beyer
Ah ha...I already do that, so all is well. It seems my lack of Ant knowledge is showing. Are we ready to move to Maven 2 yet? :) -Original Message- From: Tim Ellison [mailto:[EMAIL PROTECTED] Sent: Monday, July 03, 2006 4:14 AM To: harmony-dev@incubator.apache.org Subject: Re:

Re: [classlib] Exception-throwing compatibility question

2006-07-03 Thread Geir Magnusson Jr
I think that the details should be considered in this, but I'd rather us follow the RI (and log it as a difference from the spec) if we have some inkling that user code will be affected by it. geir Mikhail Loenko wrote: Do I undersyand correctly that even when spec says e.g. that Exception1

Re: [classlib] build file stuff

2006-07-03 Thread Geir Magnusson Jr
Why? Nathan Beyer wrote: Ah ha...I already do that, so all is well. It seems my lack of Ant knowledge is showing. Are we ready to move to Maven 2 yet? :) -Original Message- From: Tim Ellison [mailto:[EMAIL PROTECTED] Sent: Monday, July 03, 2006 4:14 AM To:

Re: [classlib] compatibility of toString

2006-07-03 Thread Geir Magnusson Jr
Tim Ellison wrote: Andrew Zhang wrote: On 7/1/06, Alex Blewitt [EMAIL PROTECTED] wrote: On 01/07/06, Andrew Zhang [EMAIL PROTECTED] wrote: Agree. But there are always exceptions. Some toString methods have to contain some key information as spec required, for example, the size or index.

Re: [classlib] build file stuff

2006-07-03 Thread Tim Ellison
(He's only teasing you, don't take the bait!) Geir Magnusson Jr wrote: Why? Nathan Beyer wrote: Ah ha...I already do that, so all is well. It seems my lack of Ant knowledge is showing. Are we ready to move to Maven 2 yet? :) -Original Message- From: Tim Ellison [mailto:[EMAIL

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Geir Magnusson Jr
Andrey Chernyshev wrote: I didn't find the exact reason why this happens, looks like a drlvm ant scripts work differently. It could be a side effect of the recent adoption of DRLVM build for classlib binaries. Most likely. :) The trick is that drlvm should put it's own hythread

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Geir Magnusson Jr
Mark Hindess wrote: On 3 July 2006 at 15:14, Andrey Chernyshev [EMAIL PROTECTED] wrote: (a) Do a quick-fix in build.xml / deploy.copy_classlib target - add a filter which will will exclude hythr from copying; (b) More graceful fix - split the process.components target in build.xml into

Re: [classlib] Approval for String patch for HARMONY-719

2006-07-03 Thread Geir Magnusson Jr
Interesting - couldn't you promote this fix as a minor performance improvement as well to knock out would would be a pointless instanceof in the case of ? public boolean contentEquals(CharSequence cs) { if (cs == null) { throw new NPE; } if (cs.length() != count) { return

Re: [classlib] build file stuff

2006-07-03 Thread Geir Magnusson Jr
Just checking :) I'm sitting here on a work holiday trying to catch up... geir Tim Ellison wrote: (He's only teasing you, don't take the bait!) Geir Magnusson Jr wrote: Why? Nathan Beyer wrote: Ah ha...I already do that, so all is well. It seems my lack of Ant knowledge is showing. Are

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Andrey Chernyshev
On 7/3/06, Mark Hindess [EMAIL PROTECTED] wrote: On 3 July 2006 at 15:14, Andrey Chernyshev [EMAIL PROTECTED] wrote: I didn't find the exact reason why this happens, looks like a drlvm ant scripts work differently. It could be a side effect of the recent adoption of DRLVM build for

RE: [classlib][testing] excluding the failed tests

2006-07-03 Thread Nathan Beyer
Based on what I've seen of the excluded tests, category 1 is the predominate case. This could be validated by looking at old revisions in SVN. -Nathan -Original Message- From: Geir Magnusson Jr [mailto:[EMAIL PROTECTED] Is this the case where we have two 'categories'? 1) tests

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Salikh Zakirov
Andrey Chernyshev wrote: (a) Do a quick-fix in build.xml / deploy.copy_classlib target - add a filter which will will exclude hythr from copying; Verified. The Andrey's suggestion worked out (patch below). To make the smoke tests pass on Linux I had to further apply more patches: * fix

RE: [classlib] Approval for String patch for HARMONY-719

2006-07-03 Thread Nathan Beyer
The concern I would have about this is the scenario where it actually is a StringBuffer, especially an empty StringBuffer. The point of the instanceof check and delegation to the contentEquals(StringBuffer) is to maintain synchronization guarantees of StringBuffer. If we call the 'length()' before

Re: Using Visual Studio C++ Express to compile classlib - fails.

2006-07-03 Thread Thorbjørn Ravn Andersen
Geir Magnusson Jr skrev den 28-06-2006 10:25: Next step - dlrvm :) That's excellent. Did all the tests pass for classlib? Working on it... Doesn't get much done these days. Can you document this procedure either on the wiki or send as a patch for the website? Yes. I think

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Gregory Shimansky
On Monday 03 July 2006 22:12 Salikh Zakirov wrote: Andrey Chernyshev wrote: (a) Do a quick-fix in build.xml / deploy.copy_classlib target - add a filter which will will exclude hythr from copying; Verified. The Andrey's suggestion worked out (patch below). To make the smoke tests pass

Re: Using Visual Studio C++ Express to compile classlib - fails.

2006-07-03 Thread Geir Magnusson Jr
Thorbjørn Ravn Andersen wrote: Geir Magnusson Jr skrev den 28-06-2006 10:25: Next step - dlrvm :) That's excellent. Did all the tests pass for classlib? Working on it... Doesn't get much done these days. Can you document this procedure either on the wiki or send as a patch

Re: [classlib] Approval for String patch for HARMONY-719

2006-07-03 Thread Geir Magnusson Jr
Nathan Beyer wrote: The concern I would have about this is the scenario where it actually is a StringBuffer, especially an empty StringBuffer. The point of the instanceof check and delegation to the contentEquals(StringBuffer) is to maintain synchronization guarantees of StringBuffer. If we

RE: [classlib] Approval for String patch for HARMONY-719

2006-07-03 Thread Nathan Beyer
-Original Message- From: Geir Magnusson Jr [mailto:[EMAIL PROTECTED] Nathan Beyer wrote: The concern I would have about this is the scenario where it actually is a StringBuffer, especially an empty StringBuffer. The point of the instanceof check and delegation to the

[build] New ECJ depends requires update to build machine (RE: svn commit: r418841 - in /incubator/harmony/enhanced/classlib/trunk: depends/jars/ make/depends.properties modules/tools/src/main/java/org

2006-07-03 Thread Nathan Beyer
To whoever can handle it, I've updated the dependencies and Compiler class to use a new version of the Eclipse compiler JAR. The final 3.2 release was shipped the other day. Sorry for the inconvenience. -Nathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [drlvm/mmtk] jitrino.jet write barrier design questions

2006-07-03 Thread Weldon Washburn
Alex, Sorry for taking so long to answer your questions below. Please see the response inline. Weldon On 6/27/06, Alex Astapchuk [EMAIL PROTECTED] wrote: AFAIR from the recent thread, to implement WB for MMTk support, I have to emit calls of org.mmtk.plan.PlanLocal.writeBarrier(

Re: [classlib][testing] excluding the failed tests

2006-07-03 Thread Tim Ellison
Nathan Beyer wrote: Based on what I've seen of the excluded tests, category 1 is the predominate case. This could be validated by looking at old revisions in SVN. I'm sure that is true, I'm just saying that the build system 'normal' state is that all enabled tests pass. My concern was over

Re: [build] New ECJ depends requires update to build machine

2006-07-03 Thread Tim Ellison
Nathan Beyer wrote: To whoever can handle it, I've updated the dependencies and Compiler class to use a new version of the Eclipse compiler JAR. The final 3.2 release was shipped the other day. Sorry for the inconvenience. Thanks Nathan. I've just updated the Linux build machine, but

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-03 Thread Tim Ellison
Andrey Chernyshev wrote: I'm not sure it is just a name clash problem - drlvm won't give the hythread library if the class lib hadn't requested it. The classlib builds it's own copy of the hythread library, so there is no need for a compatible VM to rebuild it or provide it. VMs are free to

Re: [drlvm] Signed jars cannot be used in classpath

2006-07-03 Thread Tim Ellison
Gregory Shimansky wrote: Hello Today I've found the reason of why drlvm currently cannot use jar files signed with jarsigner in classpath. When it is done it throws SecurityException: K00ec :) . The reason is that SHA1 provider cannot be found by security API to check the signature.

Re: svn commit: r418195 - /incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/javac/Compiler.java

2006-07-03 Thread Tim Ellison
Geir Magnusson Jr wrote: Indeed not. Should we just use an ant filter and a property to set this? Does your IDE cope with this? It will require testing exclusively via Ant I think. Regards, Tim geir [EMAIL PROTECTED] wrote: Author: tellison Date: Fri Jun 30 00:49:45 2006 New

Re: svn commit: r418195 - /incubator/harmony/enhanced/classlib/trunk/modules/tools/src/main/java/org/apache/harmony/tools/javac/Compiler.java

2006-07-03 Thread Geir Magnusson Jr
Can you get your IDE to invoke ant? Tim Ellison wrote: Geir Magnusson Jr wrote: Indeed not. Should we just use an ant filter and a property to set this? Does your IDE cope with this? It will require testing exclusively via Ant I think. Regards, Tim geir [EMAIL PROTECTED] wrote:

Re: [classlib] Approval for String patch for HARMONY-719

2006-07-03 Thread Geir Magnusson Jr
Nathan Beyer wrote: -Original Message- From: Geir Magnusson Jr [mailto:[EMAIL PROTECTED] Nathan Beyer wrote: The concern I would have about this is the scenario where it actually is a StringBuffer, especially an empty StringBuffer. The point of the instanceof check and

Re: [classlib] Exception-throwing compatibility question

2006-07-03 Thread Richard Liang
Hello George, Agree. We shall always following RI when throwing exception. But Harmony developer could discuss specific problems on mailing list if he/she feels uncomfortable. ;-) George Harley wrote: Mikhail Loenko wrote: For the example I've started this thread with it seems that

Re: [classlib] compatibility of toString

2006-07-03 Thread Richard Liang
Geir Magnusson Jr wrote: Tim Ellison wrote: Andrew Zhang wrote: On 7/1/06, Alex Blewitt [EMAIL PROTECTED] wrote: On 01/07/06, Andrew Zhang [EMAIL PROTECTED] wrote: Agree. But there are always exceptions. Some toString methods have to contain some key information as