RE: [classlib] trying new framework for testing serialization

2006-07-07 Thread Nathan Beyer
> -Original Message- > From: Stepan Mishura [mailto:[EMAIL PROTECTED] > > * When loading the resource, the name is assembled using > File.separatorChar > > as the separator, but you should just be using the character "/" since > > that's the normative class path separator. > > I didn't

RE: [classlib] Testing conventions - a proposal

2006-07-07 Thread Nathan Beyer
> -Original Message- > From: Geir Magnusson Jr [mailto:[EMAIL PROTECTED] > > "Maven layout"? We were doing that layout in Jakarta projects long > before maven > And I would guess the Maven designers would agree. Much of their documentation talks about how the conventions inferred

Re: [classlib] debug compilation as default

2006-07-07 Thread Ivan Volosyuk
On 7/7/06, Mark Hindess <[EMAIL PROTECTED]> wrote: On 7 July 2006 at 21:29, "Ivan Volosyuk" <[EMAIL PROTECTED]> wrote: > On 7/7/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > > > > Ivan Volosyuk wrote: > > > > > > > > The drlvm build already has ant property called "build.cfg" and > > > "bui

Re: [classlib] debug compilation as default

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 21:29, "Ivan Volosyuk" <[EMAIL PROTECTED]> wrote: > On 7/7/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > > > > Ivan Volosyuk wrote: > > > > > > > > The drlvm build already has ant property called "build.cfg" and > > > "build.cxx" for the debug or release build and the compil

[classlib][nio] java.nio.ByteBuffer.order((ByteOrder) null) throws unspecified NPE

2006-07-07 Thread Tim Ellison
Vladimir, My simple tests on the RI show that passing null to ByteBuffer.order(ByteOrder) causes the order to be set to LITTLE_ENDIAN, or maybe even the opposite of the natural order. This is the output from a simple test on my machine: Natural order = BIG_ENDIAN Set BE order = BIG_ENDIAN S

Re: RE: Re: [classlib] compatibility of toString

2006-07-07 Thread Alex Blewitt
On 07/07/06, Magnusson, Geir <[EMAIL PROTECTED]> wrote: > If people are relying on one implementation that's undocumented > behaviour, then it's bad code. It may well fail on any other system > (inc. embedded systems, or other OS, or even between different > versions). No kidding. Welcome to t

RE: Re: [classlib] compatibility of toString

2006-07-07 Thread Magnusson, Geir
> -Original Message- > From: Alex Blewitt [mailto:[EMAIL PROTECTED] > Sent: Friday, July 07, 2006 11:52 AM > To: harmony-dev@incubator.apache.org; [EMAIL PROTECTED] > Subject: Re: Re: [classlib] compatibility of toString > > On 06/07/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > > >

Re: [classlib] debug compilation as default

2006-07-07 Thread Ivan Volosyuk
On 7/7/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: Ivan Volosyuk wrote: > > The drlvm build already has ant property called "build.cfg" and > "build.cxx" for the debug or release build and the compiler name. The > properties is initialized from BUILD_CFG and CXX environment > variables. I

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 10:33, Tim Ellison <[EMAIL PROTECTED]> wrote: > Alexey Varlamov wrote: > > I know the topic of test layouts is too popular here, but let me offer > > some more grounds :) > > > > I think classlib tests should include a suite for VM-independent > > kernel tests, like recently cre

Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 16:07, Mark Hindess <[EMAIL PROTECTED]> wrote: > > On 7 July 2006 at 18:34, "Anton Luht" <[EMAIL PROTECTED]> wrote: > > Yuri, > > > > I'm trying to test serialization but the simple test: > > > > import java.io.*; > > > > public class Test { > > public static void main(Stri

Re: Re: [classlib] compatibility of toString

2006-07-07 Thread Alex Blewitt
On 06/07/06, Tim Ellison <[EMAIL PROTECTED]> wrote: Here here; if only the API was printOn(OutputStream) then we'd all be happy(er). I suspect that it's hear, hear, at least there (in Parliament). :-) Alex. - Terms of use :

Re: Re: [classlib] compatibility of toString

2006-07-07 Thread Alex Blewitt
On 06/07/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: Alex Blewitt wrote: > IMNSHO I don't think we should by default copy the toString() > behaviour from the RI, unless mandated by the spec in JavaDoc. Ok. Good rant, and I agree with it, but I still don't see a reason here why we shouldn'

Re: [classlib] trying new framework for testing serialization

2006-07-07 Thread Stepan Mishura
Anton, You suggestion works only if a test extends SerializationTest but we agree avoid this (i.e. a test should invoke only static utility methods of SerializationTest) Thanks, Stepan. On 7/7/06, Anton Luht wrote: Stepan, I think that there's no need in SerializableAssert interface - just

Re: [classlib] Is it OK for VM kernel class to call internal classlib API?

2006-07-07 Thread Andrey Chernyshev
On 7/7/06, Oliver Deakin <[EMAIL PROTECTED]> wrote: Andrey Chernyshev wrote: > I was trying to compile the kernel classes set from DRLVM independently > from the classlib and found it difficult because kernel classes set > currently have a dependence on the internal classlib API, e.g. > org.apach

Re: [announce] New Apache Harmony Committer : Weldon Washburn

2006-07-07 Thread Rana Dasgupta
Congratulations :-) Rana

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Geir Magnusson Jr
This is something I think we should do sooner rather than later... geir Tim Ellison wrote: > Vladimir Gorr wrote: >> Agree. However we should have the possibility to run the class library >> tests >> against any VM. >> >> AFAIK we cannot provide this thing right now (java launcher requests the >>

Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 18:34, "Anton Luht" <[EMAIL PROTECTED]> wrote: > Yuri, > > I'm trying to test serialization but the simple test: > > import java.io.*; > > public class Test { > public static void main(String[] args) throws Throwable { > ObjectOutputStream oos = new ObjectOutputStream(n

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-07 Thread Andrey Chernyshev
On 7/7/06, Tim Ellison <[EMAIL PROTECTED]> wrote: Geir Magnusson Jr wrote: > Actually, let me flip this the other way... > > What are the differences between the impl of the threading lib in DRLVM > vs that in classlib? Yep, that is the right question. I don't know the answer, perhaps whoever m

Re: [classlib][security] crypto provider: implementation of SHA-1 algorithm

2006-07-07 Thread Anton Luht
Yuri, I'm trying to test serialization but the simple test: import java.io.*; public class Test { public static void main(String[] args) throws Throwable { ObjectOutputStream oos = new ObjectOutputStream(new ByteArrayOutputStream()); oos.writeObject(new Object()); } } fails: java.la

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Tim Ellison
Alexey Varlamov wrote: > 2006/7/7, Tim Ellison <[EMAIL PROTECTED]>: >> Alexey Varlamov wrote: >> > I know the topic of test layouts is too popular here, but let me offer >> > some more grounds :) >> > >> > I think classlib tests should include a suite for VM-independent >> > kernel tests, like rece

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Tim Ellison
Vladimir Gorr wrote: > Agree. However we should have the possibility to run the class library > tests > against any VM. > > AFAIK we cannot provide this thing right now (java launcher requests the > clearvm library). That is the default name, but you can change it with a command line option -vm:

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

2006-07-07 Thread Tim Ellison
Thorbjørn Ravn Andersen wrote: > Oliver Deakin skrev den 27-06-2006 12:25: >> Do you mean the header files in deploy/include? If so, the reason they >> are copied >> there is so that they are in a shared location for all modules. (In >> fact it's the same >> reason that libs are built into deploy/

Re: Strategy for Harmony to work with Visual Studio 2005?

2006-07-07 Thread Thorbjørn Ravn Andersen
Gregory Shimansky skrev den 07-07-2006 15:01: Do you mean you have an error that there is no manifest file present? This has been answered too in the same threads about using VC 8.0. I just copied all the manifests created in native-src/win.IA32 to deloy/jdk/jre/bin manually to see if it works

Re: [classlib] trying new framework for testing serialization

2006-07-07 Thread Anton Luht
Stepan, I think that there's no need in SerializableAssert interface - just put assertDeserialized(Serializable, Serializable) method to SerializationTest class with default implementation based on current code from defineComparator (if there's equals(), use it, if it's instance of Throwable, use

Re: Strategy for Harmony to work with Visual Studio 2005?

2006-07-07 Thread Gregory Shimansky
On Friday 07 July 2006 16:00 Thorbjørn Ravn Andersen wrote: > Matt Benson skrev den 06-07-2006 19:25: > > Some particulars may be slightly different from one > > machine to the next, but in general this works; we > > need to get this info in the wiki IMHO > > Agreed. I have starting to write such

Re: [classlib] Testing conventions - a proposal

2006-07-07 Thread Geir Magnusson Jr
Oliver Deakin wrote: > George Harley wrote: >> Hi, >> >> Just seen Tim's note on test support classes and it really caught my >> attention as I have been mulling over this issue for a little while >> now. I think that it is a good time for us to return to the topic of >> class library test layout

Re: [classlib] Exception throwing compatibility: java.util.Scanner

2006-07-07 Thread Geir Magnusson Jr
Richard Liang wrote: > > > Geir Magnusson Jr wrote: >> Richard Liang wrote: >> >> >>> For this case, I decide to follow "useRadix(int radix)". Please correct >>> me if I'm wrong. Thanks a lot. >>> >>> >> >> Do you mean that you're going to follow the spec? If so, we should note >> that

Re: Strategy for Harmony to work with Visual Studio 2005?

2006-07-07 Thread Thorbjørn Ravn Andersen
Matt Benson skrev den 06-07-2006 19:25: Some particulars may be slightly different from one machine to the next, but in general this works; we need to get this info in the wiki IMHO Agreed. I have starting to write such an entry, but is currently stopped by the VSMCR8.DLL problem of VS2005 E

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Alexey Varlamov
2006/7/7, Tim Ellison <[EMAIL PROTECTED]>: Alexey Varlamov wrote: > I know the topic of test layouts is too popular here, but let me offer > some more grounds :) > > I think classlib tests should include a suite for VM-independent > kernel tests, like recently created testcases in H-765 and H-721

Re: [classlib] Testing conventions - a proposal

2006-07-07 Thread Oliver Deakin
George Harley wrote: Hi, Just seen Tim's note on test support classes and it really caught my attention as I have been mulling over this issue for a little while now. I think that it is a good time for us to return to the topic of class library test layouts. The current proposal [1] sets ou

Re: [classlib] Exception throwing compatibility: java.util.Scanner

2006-07-07 Thread Richard Liang
Geir Magnusson Jr wrote: Richard Liang wrote: For this case, I decide to follow "useRadix(int radix)". Please correct me if I'm wrong. Thanks a lot. Do you mean that you're going to follow the spec? If so, we should note that we're making a conscious decision to differ from the RI

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Tim Ellison
Alexey Varlamov wrote: > I know the topic of test layouts is too popular here, but let me offer > some more grounds :) > > I think classlib tests should include a suite for VM-independent > kernel tests, like recently created testcases in H-765 and H-721. The > latter has gone to drlvm/vm/tests/sm

Re: [drlvm] DRLVM segfaults in hythread_tls_get()

2006-07-07 Thread Tim Ellison
Geir Magnusson Jr wrote: > Actually, let me flip this the other way... > > What are the differences between the impl of the threading lib in DRLVM > vs that in classlib? Yep, that is the right question. I don't know the answer, perhaps whoever made those changes can enlighten us. Regards. Tim

Re: [classlib] Is it OK for VM kernel class to call internal classlib API?

2006-07-07 Thread Oliver Deakin
Andrey Chernyshev wrote: I was trying to compile the kernel classes set from DRLVM independently from the classlib and found it difficult because kernel classes set currently have a dependence on the internal classlib API, e.g. org.apache.harmony.luni.internal.net.www.protocol.jar.JarURLConnectio

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Vladimir Gorr
On 7/7/06, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: Vladimir Gorr wrote: > On 7/7/06, Mark Hindess <[EMAIL PROTECTED]> wrote: >> >> >> On 7 July 2006 at 12:55, "Alexey Varlamov" <[EMAIL PROTECTED] > >> wrote: >> > >> > I know the topic of test layouts is too popular here, but let me offer

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 10:50, Mark Hindess <[EMAIL PROTECTED]> wrote: > > On 7 July 2006 at 16:18, "Vladimir Gorr" <[EMAIL PROTECTED]> wrote: > > > > On 7/7/06, Mark Hindess <[EMAIL PROTECTED]> wrote: > > > > > > > > > On 7 July 2006 at 12:55, "Alexey Varlamov" <[EMAIL PROTECTED]> > > > wrote: > > >

Re: portlib functionality

2006-07-07 Thread Geir Magnusson Jr
can we please try to remember to categorize our subject lines? :) geir Marina Goldburt wrote: > Hi, > > As I see the main idea of the port library is " isolates all platform > specific knowledge to one area", as written at > "http://svn.apache.org/viewvc > /incubator/harmony/enhanced/classlib

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Geir Magnusson Jr
Vladimir Gorr wrote: > On 7/7/06, Mark Hindess <[EMAIL PROTECTED]> wrote: >> >> >> On 7 July 2006 at 12:55, "Alexey Varlamov" <[EMAIL PROTECTED]> >> wrote: >> > >> > I know the topic of test layouts is too popular here, but let me offer >> > some more grounds :) >> > >> > I think classlib tests s

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 16:18, "Vladimir Gorr" <[EMAIL PROTECTED]> wrote: > > On 7/7/06, Mark Hindess <[EMAIL PROTECTED]> wrote: > > > > > > On 7 July 2006 at 12:55, "Alexey Varlamov" <[EMAIL PROTECTED]> > > wrote: > > > > > > I know the topic of test layouts is too popular here, but let me > > > offer

Re: [classlib] Exception throwing compatibility: java.util.Scanner

2006-07-07 Thread Geir Magnusson Jr
Richard Liang wrote: > For this case, I decide to follow "useRadix(int radix)". Please correct > me if I'm wrong. Thanks a lot. > Do you mean that you're going to follow the spec? If so, we should note that we're making a conscious decision to differ from the RI. geir --

Re: [classlib] Exception throwing compatibility: java.util.Scanner

2006-07-07 Thread Geir Magnusson Jr
Richard Liang wrote: > > > Geir Magnusson Jr wrote: >> This is a great example. The last two aren't even legal exceptions for >> that method. >> >> It seems like the RI is doing random crap, and it wouldn't be something >> that someone would depend on... can you imagine? >> >> > Thanks a lo

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Vladimir Gorr
On 7/7/06, Mark Hindess <[EMAIL PROTECTED]> wrote: On 7 July 2006 at 12:55, "Alexey Varlamov" <[EMAIL PROTECTED]> wrote: > > I know the topic of test layouts is too popular here, but let me offer > some more grounds :) > > I think classlib tests should include a suite for VM-independent > kerne

Re: portlib functionality

2006-07-07 Thread Paulex Yang
Marina, Marina Goldburt wrote: Tim, Paulex, Will look at the file locking later...And I'm sure there are other things worthing evaluation to be portlib extension. And what is the way to extend the portlib functionality? If we add all the missing functions to the HyPortLibrary structure, th

Re: [testing] Peace

2006-07-07 Thread George Harley
Tim Ellison wrote: May I tactfully suggest that we get this back to a discussion of the pros and cons of JUnit test suites and/or TestNG metadata vs. directory layout. It sounds like we all want to resolve that problem asap. Regards, Tim +1 -- George George Harley wrote: Mark Hin

Re: [vm-kernel][testing] Where to put VM-agnostic tests for kernel classes?

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 12:55, "Alexey Varlamov" <[EMAIL PROTECTED]> wrote: > > I know the topic of test layouts is too popular here, but let me offer > some more grounds :) > > I think classlib tests should include a suite for VM-independent > kernel tests, like recently created testcases in H-765 and

Re: [classlib] debug compilation as default

2006-07-07 Thread Mark Hindess
On 6 July 2006 at 23:42, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > > > Mark Hindess wrote: > > On 7 July 2006 at 0:43, "Ivan Volosyuk" <[EMAIL PROTECTED]> wrote: > >> On 7/7/06, Gregory Shimansky <[EMAIL PROTECTED]> wrote: > > > >> I can make this patch. One question, is it ok to have same

Re: [classlib] Testing conventions - a proposal

2006-07-07 Thread Mark Hindess
On 6 July 2006 at 21:02, "Nathan Beyer" <[EMAIL PROTECTED]> wrote: > > I think Tim has a valid point, or at least the point I'm inferring > seems valid: the testing technology is not the real issue. This > problem can be solved by either JUnit or TestNG. More specifically, > this problem can be so

Re: [classlib] debug compilation as default

2006-07-07 Thread Mark Hindess
On 7 July 2006 at 2:25, "Ivan Volosyuk" <[EMAIL PROTECTED]> wrote: > On 7/7/06, Gregory Shimansky <[EMAIL PROTECTED]> wrote: > > On Friday 07 July 2006 01:28 Ivan Volosyuk wrote: > > > > > > > > I'm happy with release and debug but the top-level interface > > > > (and the module-level interface to

Re: portlib functionality

2006-07-07 Thread Marina Goldburt
>And the short answer is "yes". The additional file system functionality >such as file locking and memory mapping required by the (newly authored >within this project) NIO code should be put into the port library. And what about hythread platform-dependent code? Have the thread and process ro

Re: portlib functionality

2006-07-07 Thread Marina Goldburt
Tim, Paulex, Will look at the file locking later...And I'm sure there are other things worthing evaluation to be portlib extension. And what is the way to extend the portlib functionality? If we add all the missing functions to the HyPortLibrary structure, the structure will grow awfully. And,