Re: [testing] locale dependent tests

2006-07-19 Thread Paulex Yang
Andrew Zhang wrote: On 7/19/06, Richard Liang <[EMAIL PROTECTED]> wrote: Tim Ellison wrote: > Richard Liang wrote: > >> Although the spec does not require the round-trip of applyPattern and >> toPattern, we still want to get one *certain* pattern through toPattern. >> Now the problem is the r

Re: [classlib] Warning - our long paths can be a problem for WinXP

2006-07-19 Thread Paulex Yang
I had same problems several days ago, and I finally resolved it in same way - move the local copy to c:\harmony. IIRC, some html files in some sandbox directory has very long names. Geir Magnusson Jr wrote: It's hard to imagine I'm writing this in 2006, but it seems that our paths in classlib,

[classlib] trouble invoking build from 'afar'

2006-07-19 Thread Geir Magnusson Jr
I'm having a little trouble w/ classlib build when invoking from an ant task outside of trunk/ To demonstrate, go to enhanced/classlib and run the following ant script : It bombs because there is some confusion about basedir or something : C:\dev\apache\harmony\enhanced\

[classlib] Warning - our long paths can be a problem for WinXP

2006-07-19 Thread Geir Magnusson Jr
It's hard to imagine I'm writing this in 2006, but it seems that our paths in classlib, plus a root directory that is some number of directories from c:, can be so long that svn and other tools choke under WinXP. I'm not completely sure, but after battling what appeared to be problematic .svn/tmp

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread Richard Liang
George Harley wrote: Richard Liang wrote: George Harley wrote: Hi, If annotations were to be used to help us categorise tests in order to simplify the definition of test configurations - what's included and excluded etc - then a core set of annotations would need to be agreed by the pro

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread Richard Liang
George Harley wrote: Hi Alexei, It's encouraging to hear that (Ant + TestNG + sample tests) all worked fine together on Harmony. In answer to your question I suppose that the ability to fork the tests in a separate VM means that we do not run the risk of possible bugs in Harmony affecting t

Re: [drlvm] interface call devirtualization

2006-07-19 Thread Egor Pasko
On the 0x1AB day of Apache Harmony Mikhail Fursov wrote: > > Seems like the best choice is to start from a couple of easy heuristics: > > * if there is only one loaded class to implement the interface, choose it > > * if there are more, choose the one with it's method invoked earlier > > (compiled

[off-topic] From a Klingon programmer...

2006-07-19 Thread Geir Magnusson Jr
http://www.annoyances.org/exec/show/article09-205 Top 10 things likely to be overheard from a Klingon Programmer == 10. Specifications are for the weak and timid! 9. You question the worthiness of my code? I should kill you where you

Re: Solution on Harmony-815 (was Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.)

2006-07-19 Thread Andrew Zhang
Hi everyone, I have one more question: Which exception should be thrown whose error code is unused? Let's consider native throwJavaNetSocketException quoted from nethelp.c: void throwJavaNetSocketException (JNIEnv * env, I_32 errorNumber) { jclass aClass; char *errorMessage = netLoo

Re: [drlvm] using the harmony launcher

2006-07-19 Thread Andrey Chernyshev
On 7/17/06, Oliver Deakin <[EMAIL PROTECTED]> wrote: Andrey Chernyshev wrote: > On 7/13/06, Tim Ellison <[EMAIL PROTECTED]> wrote: >> Andrey Chernyshev wrote: >> >> >> >> > (4) >> > Launcher wants the vm dll in the "default" directory unless the option >> > is specified. Should we realign the dr

Re: [drlvm] using the harmony launcher

2006-07-19 Thread Andrey Chernyshev
On 7/17/06, Oliver Deakin <[EMAIL PROTECTED]> wrote: Andrey Chernyshev wrote: > On 7/13/06, Oliver Deakin <[EMAIL PROTECTED]> wrote: >> Andrey Chernyshev wrote: >> >> >> >> or: >> launcher calls CreateJavaVM() >> CreateJavaVM() passes call to create_vm() >> create_vm() makes its usual calls and

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread George Harley
Hi Alexei, I just downloaded the latest working build of TestNG 5.0 [1] and support for the "jvm" attribute is in there. This is not the official release build. Best regards, George [1] http://testng.org/testng-5.0.zip Alexei Zakharov wrote: Hi George, Agree, we may experience problems i

Re: [classlib][nio]the conflict of RI and spec?

2006-07-19 Thread Andrew Zhang
On 7/19/06, Paulex Yang <[EMAIL PROTECTED]> wrote: I tried the test, and it failed as you said with RI on my WinXP. And I also tried to pass in a read/write FileChannel got from RandomAccessFile, the test passes. Paulex, the test fails on my machine! Seems RI returns 2*length instead of leng

Re: [classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Geir Magnusson Jr
Mark Hindess wrote: > On 19 July 2006 at 10:50, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: >> >> Mark Hindess wrote: >>> On 19 July 2006 at 10:18, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: sounds dicey, depending on ant/jre? for this structure? My intel-based mac reports i386,

Re: [classlib] Why is there a c file in support/src/test/*java* ?

2006-07-19 Thread Geir Magnusson Jr
fixing... George Harley wrote: > Hi, > > Agreed. I think that the file is used in a couple of luni tests for > java.lang.ClassLoader. No significance in the fact that it is a .c file > and, as far as I can see, no special reason why it needs to be in the > support folder. > > Best regards, > Geo

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

2006-07-19 Thread Tim Ellison
FYI I've logged it as HARMONY-925 so we don't forget. Regards, Tim Alexei Zakharov wrote: > BTW, my default locale is Russian > > 2006/7/18, Alexei Zakharov <[EMAIL PROTECTED]>: >> Sure, >> >> DecimalFormatTest: >> >> Testcase: test_parseLjava_lang_String_Ljava_text_ParsePositio

Re: [classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Mark Hindess
On 19 July 2006 at 10:50, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > > > Mark Hindess wrote: > > On 19 July 2006 at 10:18, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > >> sounds dicey, depending on ant/jre? for this structure? > >> > >> My intel-based mac reports i386, my T43 running windo

Re: [testing] locale dependent tests

2006-07-19 Thread Andrew Zhang
On 7/19/06, Richard Liang <[EMAIL PROTECTED]> wrote: Tim Ellison wrote: > Richard Liang wrote: > >> Although the spec does not require the round-trip of applyPattern and >> toPattern, we still want to get one *certain* pattern through toPattern. >> Now the problem is the returned pattern is lo

Re: Solution on Harmony-815 (was Re: [jira] Commented: (HARMONY-815) [classlib][nio] Refine implConfigureBlocking(boolean) method of DatagramChannel and SocketChannel.)

2006-07-19 Thread Andrew Zhang
Hi everyone, If no one objects, I'd like to throw subclass of SocketException in native code to fix this problem. Any suggestions, please kindly let me know. Thanks! On 7/18/06, Andrew Zhang <[EMAIL PROTECTED]> wrote: Seems most people prefer subclass to SocketException with ErrorCodeExcepti

Re: [classlib] Why is there a c file in support/src/test/*java* ?

2006-07-19 Thread George Harley
Hi, Agreed. I think that the file is used in a couple of luni tests for java.lang.ClassLoader. No significance in the fact that it is a .c file and, as far as I can see, no special reason why it needs to be in the support folder. Best regards, George Mark Hindess wrote: On 19 July 2006 at

Re: [drlvm] Status of drlvm

2006-07-19 Thread Andrey Chernyshev
lt;[EMAIL PROTECTED]> wrote: Vladimir, I've applied both patches, but `segfault` is reproducible nevertheless. gdb says that: (gdb) run Hello Starting program: /export/lab_drlbuild/test_tmp/20060719/trunk/build/lnx_ia32_gcc_debug/deploy/jre/bin/ij Hello [Thread debugging using libthread_db e

Re: [classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Geir Magnusson Jr
Mark Hindess wrote: > On 19 July 2006 at 10:18, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: >> sounds dicey, depending on ant/jre? for this structure? >> >> My intel-based mac reports i386, my T43 running windows returns x86 and >> my T42 running ubuntu returns i386. I think they are all Sun J

Re: [classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Mark Hindess
On 19 July 2006 at 10:18, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > sounds dicey, depending on ant/jre? for this structure? > > My intel-based mac reports i386, my T43 running windows returns x86 and > my T42 running ubuntu returns i386. I think they are all Sun JREs. > > I'd argue that t

[classlib] resolution of rmi/math/crypto duplication?

2006-07-19 Thread Geir Magnusson Jr
While it's not a critical thing, this seems like something we want to put to bed. Tim tried taking a run at this for one of these last week, and I'd like to try again. Would some number of days of discussion (like 3) plus a vote be an acceptable way to get this resolved? geir --

Re: [classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Geir Magnusson Jr
sounds dicey, depending on ant/jre? for this structure? My intel-based mac reports i386, my T43 running windows returns x86 and my T42 running ubuntu returns i386. I think they are all Sun JREs. I'd argue that the latter two are identical chip architectures and that there will be shared code be

Re: [classlib] Why is there a c file in support/src/test/*java* ?

2006-07-19 Thread Mark Hindess
On 19 July 2006 at 9:56, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > Seems like we'd want to put it somewhere else? Yes. Looks more like a resource file to me. Probably belongs in modules/luni since that is where the tests are that refer to it. -Mark. ---

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

2006-07-19 Thread Mark Hindess
;-) Well, most of the (real) build breaks today have been my fault[0]. I must have accidentally replied to the one that wasn't. -Mark [0] I'm going to have to consider buying shares in a brewery On 19 July 2006 at 8:24, Geir Magnusson Jr <[EMAIL PROTECTED]> wrote: > Guilty of SVN not working?

Re: [classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Mark Hindess
The os.arch system property[0]? We discussed this on the list in March I think when we create make/properties.xml to replace the numerous implementations of platform properties that existed at the time. I was simply removing the last remnant of the old properties. -Mark. [0] Or some canonical

[classlib] Why is there a c file in support/src/test/*java* ?

2006-07-19 Thread Geir Magnusson Jr
Seems like we'd want to put it somewhere else? - 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] Testing conventions - a proposal

2006-07-19 Thread George Harley
Hi Alexei, I was quite surprised myself to discover that there was no "jvm" attribute. However, on reflection, it's reasonable to believe that to the majority of their users the precise VM used to test their application and component code is not important. The approach taken by the TestNG pr

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Mikhail Loenko
If we include certs form 3rd parties IMHO it makes sense to download them and generate our storage at build time. Thanks, Mikhail 2006/7/19, George Harley <[EMAIL PROTECTED]>: Geir Magnusson Jr wrote: > Tim Ellison wrote: > >> Geir Magnusson Jr wrote: >> >>> I'm integrating HARMONY-536, the JSS

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Tim Ellison
Geir Magnusson Jr wrote: > > George Harley wrote: > >> I think you are right. The kind of information we would want to have in >> a Harmony cacerts file is available from CA web sites (e.g. Verisign and >> Thawte). Inclusion of Thawte root certs requires accepting their license >> which is availa

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

2006-07-19 Thread Geir Magnusson Jr
Guilty of SVN not working? You're a great guy and all, and we depend on you for a lot, but I don't think this was your fault... geir Mark Hindess wrote: > Guilty. I'm fixing this. > > -Mark. > > On 19 July 2006 at 10:12, Apache Harmony Build <[EMAIL PROTECTED]> wrote: >> Online report : http

Re: [classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Geir Magnusson Jr
I think that ia32 was more accurate than x86. What will you use for windows.IA64? (or linux.IA64 for that matter?) geir Mark Hindess wrote: > Windows users should take a look at the comments in the following change. > > Regards, > -Mark. > > On 19 July 2006 at 10:07, [EMAIL PROTECTED] wrote:

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Geir Magnusson Jr
George Harley wrote: > I think you are right. The kind of information we would want to have in > a Harmony cacerts file is available from CA web sites (e.g. Verisign and > Thawte). Inclusion of Thawte root certs requires accepting their license > which is available on the repository access page

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Geir Magnusson Jr
I've asked Sun about this. It would be nice if people could re-use their root cert store. What format does IBM and BEA use? geir Boris Kuznetsov wrote: > Quotation from JavaTM Cryptography Architecture > API Specification & Reference > http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoS

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread Alexei Zakharov
Hi George, Agree, we may experience problems in case of VM hang or crash. I suggest this only as a temporary solution. BTW, the fact that TestNG ant task still doesn't have such attributes looks like a sign for me - TestNG can be still immature in some aspects. Still comparing TestNG and JUnit.

Re: Kubyshkin Alexander

2006-07-19 Thread Geir Magnusson Jr
? wrote: > Hello, > > I'm Kubyshkin Alexander, student of the Novosibirsk State > University(RUSSIA). I want to take part in the project, specifically to > work with SOUND module. I started to work with sound.sampled interfaces > and classes. I'm ready to suggest the interfaces

Re: [classlib] internationalization

2006-07-19 Thread Denis Kishenko
2006/7/19, Alexey Petrenko <[EMAIL PROTECTED]>: 2006/7/19, Denis Kishenko <[EMAIL PROTECTED]>: > 2006/7/13, Tim Ellison [EMAIL PROTECTED]: > > > > > > When you load the messages using a ResourceBundle they also get loaded > > all at once though, right? > Ops, you are right. Yes, but do not forg

Re: [classlib] internationalization

2006-07-19 Thread Alexey Petrenko
2006/7/19, Denis Kishenko <[EMAIL PROTECTED]>: 2006/7/13, Tim Ellison [EMAIL PROTECTED]: > > > When you load the messages using a ResourceBundle they also get loaded > all at once though, right? Ops, you are right. Yes, but do not forget that in "usual method" you just load the ResourceBundle.

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread George Harley
Hi Alexei, It's encouraging to hear that (Ant + TestNG + sample tests) all worked fine together on Harmony. In answer to your question I suppose that the ability to fork the tests in a separate VM means that we do not run the risk of possible bugs in Harmony affecting the test harness and the

Re: [classlib] internationalization

2006-07-19 Thread Denis Kishenko
2006/7/13, Tim Ellison [EMAIL PROTECTED]: When you load the messages using a ResourceBundle they also get loaded all at once though, right? Ops, you are right. So question is which method is better? message = Messages.getString("key.one"); or message = Messages.key_one; We have to do so

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread Alexei Zakharov
Probably my previous message was not clear enough. Why can't we just invoke everything including ant on top of Harmony for now? At least I was able to build and run test-14 examples from TestNG 4.7 distribution solely on top of j9 + our classlib today. C:\Java\testng-4.7\test-14>set JAVA_HOME=c:\

Re: [jira] Created: (HARMONY-919) [drlvm] Verifier: invokespecial instruction check fix

2006-07-19 Thread Pavel Rebriy
Hello, I'd like to explain the correct work of verifier with invokespecial instruction. There are 2 structural constraints in Java VM Specification which are directly related with invokespecial instruction: 1. About methods that instruction must invoke. 2. About protected methods invocation. Th

Re: [drlvm] interface call devirtualization

2006-07-19 Thread Mikhail Fursov
Seems like the best choice is to start from a couple of easy heuristics: * if there is only one loaded class to implement the interface, choose it * if there are more, choose the one with it's method invoked earlier (compiled by some JIT, possibly, some other JIT), * if we have many candidate m

Re: [drlvm] Status of drlvm

2006-07-19 Thread Nataly Naumova
Vladimir, I've applied both patches, but `segfault` is reproducible nevertheless. gdb says that: (gdb) run Hello Starting program: /export/lab_drlbuild/test_tmp/20060719/trunk/build/lnx_ia32_gcc_debug/deploy/jre/bin/ij Hello [Thread debugging using libthread_db enabled] [New Thread 10835

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread George Harley
Hi Richard, Actually the Ant task always runs the tests in a forked VM. At present, however, the task does not support specifying the forked VM (i.e. there is no equivalent to the JUnit Ant task's "jvm" attribute). This matter has already been raised with the TestNG folks who seem happy to in

Re: [testing] locale dependent tests

2006-07-19 Thread Richard Liang
Tim Ellison wrote: Richard Liang wrote: Although the spec does not require the round-trip of applyPattern and toPattern, we still want to get one *certain* pattern through toPattern. Now the problem is the returned pattern is locale-dependent. I'm uncertain about the reason to remove the as

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

2006-07-19 Thread Mark Hindess
Fixed in r423414. -Mark. On 19 July 2006 at 10:22, Mark Hindess <[EMAIL PROTECTED]> wrote: > > Guilty. I'm fixing this. > > -Mark. > > On 19 July 2006 at 10:12, Apache Harmony Build <[EMAIL PROTECTED]> wrote > : > > Online report : http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/c

[classlib] Windows dependency change (was svn commit: r423421 - /incubator/harmony/enhanced/classlib/trunk/make/depends.properties)

2006-07-19 Thread Mark Hindess
Windows users should take a look at the comments in the following change. Regards, -Mark. On 19 July 2006 at 10:07, [EMAIL PROTECTED] wrote: > Author: hindessm > Date: Wed Jul 19 03:07:00 2006 > New Revision: 423421 > > URL: http://svn.apache.org/viewvc?rev=423421&view=rev > Log: > I've renamed

Re: [build] status

2006-07-19 Thread Vladimir Gorr
Can anybody say about the build status on Windows we have now? Unfortunately, I cannot build for the recent sources due to the following issue: [exec] winFont.obj : error LNK2019: unresolved external symbol "void __cde l throwNPException(struct JNIEnv_ *,char const *)" ( ?throwNPException@@YA

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread George Harley
Richard Liang wrote: George Harley wrote: Hi, If annotations were to be used to help us categorise tests in order to simplify the definition of test configurations - what's included and excluded etc - then a core set of annotations would need to be agreed by the project. Consider the possi

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread George Harley
Geir Magnusson Jr wrote: Tim Ellison wrote: Geir Magnusson Jr wrote: I'm integrating HARMONY-536, the JSSE provider. Two things: 1) it's contributed to go into x-net, but the package namespace is o.a.h.security.provider.jsse so I wonder if this would be better off in the security

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread Richard Liang
Just thinking about using TestNG to execute Harmony test cases. :-) Look at our build.xml (e.g., modules/luni/build.xml), you will see something like: .. .. My question is the TestNG Ant task does not support attributes "fork" and "jvm", how to run our

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread George Harley
Hi, Since the cacerts file contains root certificate information from well-known CA outfits that in at least one case is already publicly available I would hope that there is less of a legal problem than we think. For instance, take a look at the Verisign root certificates repository [1] whic

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

2006-07-19 Thread Mark Hindess
Guilty. I'm fixing this. -Mark. On 19 July 2006 at 10:12, Apache Harmony Build <[EMAIL PROTECTED]> wrote: > Online report : http://ibmonly.hursley.ibm.com/continuum/win.ia32/servlet/con > tinuum/target/ProjectBuild.vm/view/ProjectBuild/id/6/buildId/1845 > Build statistics: > State: Error >

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread Alexei Zakharov
Hmm, do we have problems with launching ant? I thought we have problems with launching TestNG. Just checked - running tests for beans on j9+fresh classlib works fine. I.e. ant -Dbuild.module=beans -Dbuild.compiler=org.eclipse.jdt.core.JDTCompilerAdapter test 2006/7/19, Richard Liang <[EMAIL PROTE

[testing] locale dependent tests (was: Re: [build] status)

2006-07-19 Thread Tim Ellison
Richard Liang wrote: > Although the spec does not require the round-trip of applyPattern and > toPattern, we still want to get one *certain* pattern through toPattern. > Now the problem is the returned pattern is locale-dependent. I'm > uncertain about the reason to remove the assertion: > 1) Becau

Re: [classlib] Testing conventions - a proposal

2006-07-19 Thread Richard Liang
According to "TestNG Ant Task" [1], it seems that the TestNG Ant task does not support to fork a new JVM, that is, we must launch ant using Harmony itself. Any comments? Thanks a lot. [1]http://testng.org/doc/ant.html Best regards, Richard George Harley wrote: Andrew Zhang wrote: On 7/18/06

Re: [classlib] choose one [x-net] || [security] for HARMONY-536 (JSSE provider)

2006-07-19 Thread Boris Kuznetsov
Quotation from JavaTM Cryptography Architecture API Specification & Reference http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#KeyManagement "It implements the keystore as a file, using a proprietary keystore type (format) named "JKS"." On 7/19/06, Geir Magnusson Jr <[EMAIL PRO

Kubyshkin Alexander

2006-07-19 Thread ???????? ?????
Hello, I'm Kubyshkin Alexander, student of the Novosibirsk State University(RUSSIA). I want to take part in the project, specifically to work with SOUND module. I started to work with sound.sampled interfaces and classes. I'm ready to suggest the interfaces and some stubs. I've already fi