Re: ITC: Contribution of java.math and javax.crypto

2006-04-05 Thread Mikhail Loenko
Hello Miguel Thank you for your recent contribution to Harmony project! I've noticed that class javax.crypto.Util invokes a method from undocumented package sun.misc.* I assume that you did not have access to Sun sources, so it probably would be good if you provide a link to how did you learn ab

Re: Understanding the Harmony Laucher.

2006-04-05 Thread hadrien
Tim, thanks for your helpful summary. Original Message From: Tim Ellison <[EMAIL PROTECTED]> Apparently from: [EMAIL PROTECTED] To: harmony-dev@incubator.apache.org Subject: Re: Understanding the Harmony Laucher. Date: Wed, 05 Apr 2006 15:42:06 +0100 > [EMAIL PROTECTED] wrote:

Re: Starting my next round on BootJVM

2006-04-05 Thread bootjvm
Lemme get the last corners of basic execution done, then that is _very_ much at the top of the list, especially its native calls. Dan Lydick > [Original Message] > From: Geir Magnusson Jr <[EMAIL PROTECTED]> > To: > Date: 4/5/06 9:02:24 AM > Subject: Re: Starting my next round on BootJVM > > >

Re: Starting my next round on BootJVM

2006-04-05 Thread bootjvm
Enrico, Are you able to compile this latest source level? Whether you can or not, would you mind to send me your MS project and MS workspace files (I forget if this is the right name on VS. Maybe this is just Eclipse nomenclature.) I would like to look at using your settings as the starting poi

Re: svn commit: r391236 - in /incubator/harmony/enhanced/classlib/trunk: make/build-test.xml modules/crypto/make/common/build.xml

2006-04-05 Thread Stepan Mishura
Mark, thank you for your note - fixed. Thanks, Stepan. On 4/5/06, Mark Hindess wrote: > > Stepan, > > Thanks, this fixed the problems I was seeing. > > However, looking at your commit, I'd have preferred to import the > depends.xml and refer to junit as ../../${junit.dir} to reduce > coupling so

Re: [jira] Updated: (HARMONY-308) java.nio.charset.Charset.encode(CharBuffer) returns bytes in a different order in Harmony and RI for the UTF-16 charset

2006-04-05 Thread Richard Liang
Dmitry M. Kononov (JIRA) wrote: [ http://issues.apache.org/jira/browse/HARMONY-308?page=all ] Dmitry M. Kononov updated HARMONY-308: -- Attachment: test9.java java.nio.charset.Charset.encode(CharBuffer) returns bytes in a different order in Har

Re: New IBM VME

2006-04-05 Thread Daniel Gandara
Oliver Deakin wrote: ok, I'll ask there about removing 1.5 dependencies from java.rmi and compile it to get 1.4 bytecode... I hope that you would not have to remove too much when compiling to 1.4 bytecodes - I guess this is something we still need to investigate. Have you tried building the r

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Oliver Deakin
Tim Ellison wrote: Etienne Gagnon wrote: Oliver Deakin wrote: What I mean to say is that the behaviour when the function is called without a pending exception is unspecified, and in that case I think it makes most sense to match the RI. Let's say that I disagree to *impose* mat

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Tim Ellison
Etienne Gagnon wrote: > Oliver Deakin wrote: >> What I mean to say is that the behaviour when the function is called >> without a pending exception is unspecified, and in that case I think it >> makes most sense to match the RI. > > > Let's say that I disagree to *impose* matching the RI's behavi

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Etienne Gagnon
Oliver Deakin wrote: > What I mean to say is that the behaviour when the function is called > without a pending exception is unspecified, and in that case I think it > makes most sense to match the RI. Let's say that I disagree to *impose* matching the RI's behavior for undefined JNI code on Harm

Re: matching reference implementation exception behaviour

2006-04-05 Thread Alex Orlov
On 4/3/06, Tim Ellison <[EMAIL PROTECTED]> wrote: > Anton Avtamonov wrote: > > On 4/3/06, Mark Hindess <[EMAIL PROTECTED]> wrote: > > [SNIP] > >> Personally, I'd raise JIRA's one at a time when you have fixes > >> prepared. That way they can be discussed and we can firm up our > >> policy on match

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Tim Ellison
Magnusson, Geir wrote: >> -Original Message- >> From: Tim Ellison [mailto:[EMAIL PROTECTED] >> Sent: Wednesday, April 05, 2006 7:54 AM >> To: harmony-dev@incubator.apache.org >> Subject: Re: [classlib] Switching to a 5.0 compiler >> >> Mikhail Loenko wrote: >>> 2006/4/5, George Harley <[EM

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Tim Ellison
Archie Cobbs wrote: > Robert Lougher wrote: >> It's all very well bombing out with an assertion failure, but to the >> average end-user it's still the VMs fault, especially if it works with >> other runtimes (i.e. Suns). > > Sure.. sometimes theory gets trumped by practice. Then you have to decide

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Oliver Deakin
Archie Cobbs wrote: Oliver Deakin wrote: The word "pragmatic" springs to mind. FWIW, JamVM will print nothing if no exception is pending. It didn't do this originally -- it blew up with a SEGV. I changed it because a user reported an application which didn't work with JamVM but it did with

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Archie Cobbs
Oliver Deakin wrote: The word "pragmatic" springs to mind. FWIW, JamVM will print nothing if no exception is pending. It didn't do this originally -- it blew up with a SEGV. I changed it because a user reported an application which didn't work with JamVM but it did with Suns VM (can't remember

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Oliver Deakin
Robert Lougher wrote: The word "pragmatic" springs to mind. FWIW, JamVM will print nothing if no exception is pending. It didn't do this originally -- it blew up with a SEGV. I changed it because a user reported an application which didn't work with JamVM but it did with Suns VM (can't remembe

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Tim Ellison
Etienne Gagnon wrote: > Magnusson, Geir wrote: >> Maybe you could tell them about "source=1.5 target=jsr14" given that's >> the behavior of the Sun's. > > Of course, pushing the patch upstream has precedence on my previous > solution. How silly of me not to have suggested that first! I wouldn't

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Tim Ellison
Yes, that would work. Regards, Tim Etienne Gagnon wrote: > Tim Ellison wrote: >> my point is that we could hack the Eclipse batch compiler to make it do >> something it is not meant to do (source=1.5 target=1.4). If we get >> burnt then we'll have nobody to complain to ;-) >> ... >> As it stands

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Archie Cobbs
Robert Lougher wrote: It's all very well bombing out with an assertion failure, but to the average end-user it's still the VMs fault, especially if it works with other runtimes (i.e. Suns). Sure.. sometimes theory gets trumped by practice. Then you have to decide which is less work: convincing

Re: New IBM VME

2006-04-05 Thread Oliver Deakin
Daniel Gandara wrote: Oliver Deakin wrote: Daniel, The new VME is still at the 1.4 level, but with updated VM and kernel classes. As I have mentioned, two of the main reasons for this VME update was to allow for package renaming to go ahead, and also to allow String to be removed from the ker

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Robert Lougher
Hi, One last point. We're talking about a single if statement here, in a call which outputs to the screen. The overhead is miniscule. Rob. On 4/5/06, Robert Lougher <[EMAIL PROTECTED]> wrote: > The word "pragmatic" springs to mind. FWIW, JamVM will print nothing > if no exception is pending.

Re: Understanding the Harmony Laucher.

2006-04-05 Thread Tim Ellison
[EMAIL PROTECTED] wrote: > Hello there, > First, I want to apologise for my english which is not my natural language > and > for all the times I chatted during english lessons at school. Hi Hadrien, good to meet you. Please don't apologize -- I'd be useless if we were doing this in French, Russ

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Robert Lougher
The word "pragmatic" springs to mind. FWIW, JamVM will print nothing if no exception is pending. It didn't do this originally -- it blew up with a SEGV. I changed it because a user reported an application which didn't work with JamVM but it did with Suns VM (can't remember which application, it

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Archie Cobbs
Tim Ellison wrote: Understood -- my point is that "blowing up" and "corrupting internal data structures" is not something you would do by design. Agreed. By using assertions you get the best of both worlds. Assertions are especially useful for detecting badly behaving JNI native code, which can

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Tim Ellison
Understood -- my point is that "blowing up" and "corrupting internal data structures" is not something you would do by design. So what does SableVM do if I call ExceptionDescribe() with no pending exception? I changed the launcher because I agree that JNI code shouldn't misbehave, but making Sabl

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Archie Cobbs
Tim Ellison wrote: So what should a VM do if somebody calls ExceptionDescribe() and there is no pending exception? (a) blow up (b) silently ignore it, since there is nothing to describe (c) print out something along the lines of 'no exception' FWIW, here is what JCHEVM will do: If assertion

Re: Starting my next round on BootJVM

2006-04-05 Thread Geir Magnusson Jr
bootjvm wrote: All, After some piecemeal fits and starts on the BootJVM code, I am about ready to get started on another round. I am checking in the opcode work that brings this JVM to a place of basic functioning except for the ATHROW opcode, which is my first order of business with this ro

Re: New IBM VME

2006-04-05 Thread Daniel Gandara
Oliver Deakin wrote: Daniel, The new VME is still at the 1.4 level, but with updated VM and kernel classes. As I have mentioned, two of the main reasons for this VME update was to allow for package renaming to go ahead, and also to allow String to be removed from the kernel, making kernel impl

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Etienne Gagnon
Magnusson, Geir wrote: > Maybe you could tell them about "source=1.5 target=jsr14" given that's > the behavior of the Sun's. Of course, pushing the patch upstream has precedence on my previous solution. How silly of me not to have suggested that first! Etienne -- Etienne M. Gagnon, Ph.D.

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Etienne Gagnon
Tim Ellison wrote: > my point is that we could hack the Eclipse batch compiler to make it do > something it is not meant to do (source=1.5 target=1.4). If we get > burnt then we'll have nobody to complain to ;-) > ... > As it stands we have no option to use the Eclipse batch compiler > (without tw

[sablevm] Signals under windows (Was: Starting my next round on BootJVM)

2006-04-05 Thread Etienne Gagnon
Enrico Migliore wrote: > As far as I can say, the main problem of porting a JVM, designed for > UNIX, to the Windows environment are the ANSI signals: > Windows, in fact, doesn't honor not even a fourth of all ANSI signals, > therefore, the JVM signals handler WILL NOT be called by Windows. You sh

Re: SableVM on Cygwin

2006-04-05 Thread Etienne Gagnon
Hi Enrico, This is great! My hope would be, eventually, to have SableVM to also build using Microsoft's compiler. The "switch threaded" interpreter (./configure --with-threading=switch) avoids using any GCC extension in order to remain pure ISO C. My main problem is that I do not have a Windows

RE: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Magnusson, Geir
> -Original Message- > From: Tim Ellison [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 05, 2006 7:54 AM > To: harmony-dev@incubator.apache.org > Subject: Re: [classlib] Switching to a 5.0 compiler > > Mikhail Loenko wrote: > > 2006/4/5, George Harley <[EMAIL PROTECTED]>: > >> Hi, >

RE: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Magnusson, Geir
Sorry about posting from outlook.. > -Original Message- > From: Tim Ellison [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 05, 2006 7:52 AM > To: harmony-dev@incubator.apache.org > Subject: Re: [classlib] Switching to a 5.0 compiler > > Geir Magnusson Jr wrote: > > Tim Ellison wrote:

Re: New IBM VME

2006-04-05 Thread Oliver Deakin
Geir Magnusson Jr wrote: Cool - I assume you can make the new version available before we make changes to the classlib? IOW, make both available and known to the project (so developers on the project can work on the changes) and then when we get our stuff done, we'll point users to the new ver

SableVM on Cygwin

2006-04-05 Thread Enrico Migliore
hi folks, I've just built SableVM and Classpath-0.20 on Cygwin without problems and the HelloWorld console application runs perfectly :-) While waiting for the VMI interface to be ready, I'm gonna do the following steps: 1. Try to enable the -no-cygwin GCC flag 2. Try to setup the mingw env

Re: Starting my next round on BootJVM

2006-04-05 Thread Enrico Migliore
Hi Dan, I built BootJVM with MSVC in November 2005 but, as you told me, bootJVM couldn't run any Java application because it was not completed yet. Enrico, That is great news! Could you work with me to produce MSVS project and workspace files for this, please? At the moment I'm working o

Re: New IBM VME

2006-04-05 Thread Oliver Deakin
Daniel, The new VME is still at the 1.4 level, but with updated VM and kernel classes. As I have mentioned, two of the main reasons for this VME update was to allow for package renaming to go ahead, and also to allow String to be removed from the kernel, making kernel implementation easier fo

[classlib] pkg names (was: Re: svn commit: r391586 - in /incubator/harmony/enhanced/classlib/trunk: make/patternsets/ modules/crypto/META-INF/ modules/crypto/make/common/ modules/crypto/src/main/java/

2006-04-05 Thread Tim Ellison
These old guys ... huh I think I can remove the proposed label from the doc now, right? http://incubator.apache.org/harmony/subcomponents/classlibrary/pkgnaming.html Regards, Tim Geir Magnusson Jr wrote: > for giggles and grins, did we really reach a conclusion to use > "internal"? I'm not chal

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Tim Ellison
Mikhail Loenko wrote: > 2006/4/5, George Harley <[EMAIL PROTECTED]>: >> Hi, >> >> Using the Sun 5.0 javac with the "jsr14" target it is possible to do a >> complete compile of the Harmony Java source and successfully run the >> tests on the existing VME. That means we could add in more contribution

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Tim Ellison
Geir Magnusson Jr wrote: > Tim Ellison wrote: >> A while ago we agreed to switch to a class library compilation story >> that would allow us to use 1.5 Java syntax on a 1.4-compatible VM (i.e. >> using syntax that is erased by the compiler). >> >> Here's where I'm at... >> >> >> Using the Sun compi

Re: Starting my next round on BootJVM

2006-04-05 Thread bootjvm
Enrico, That is great news! Could you work with me to produce MSVS project and workspace files for this, please? I would like to begin a general migration into this environment and I will need to ask you a few questions so as to be able to run the configurator (perhaps once on CygWin or Linix a

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Mikhail Loenko
2006/4/5, George Harley <[EMAIL PROTECTED]>: > Hi, > > Using the Sun 5.0 javac with the "jsr14" target it is possible to do a > complete compile of the Harmony Java source and successfully run the > tests on the existing VME. That means we could add in more contributions > that depended on 5.0 lang

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread George Harley
Hi, Using the Sun 5.0 javac with the "jsr14" target it is possible to do a complete compile of the Harmony Java source and successfully run the tests on the existing VME. That means we could add in more contributions that depended on 5.0 language features being understood instead of letting t

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Anton Avtamonov
On 4/5/06, Etienne Gagnon <[EMAIL PROTECTED]> wrote: > I think that using Sun's javac and Eclipse with their undocumented and > unsupported options during the "transition period" seems the cleanest > strategy for both class library and VM maintenance. I see no trouble > having such a dependency fo

Re: svn commit: r391586 - in /incubator/harmony/enhanced/classlib/trunk: make/patternsets/ modules/crypto/META-INF/ modules/crypto/make/common/ modules/crypto/src/main/java/javax/crypto/ modules/crypt

2006-04-05 Thread Mikhail Loenko
Look at mail thread 'Location for API extensions' Actually there were some contradictions remained but not around 'internal' as I see. Thanks, Mikhail 2006/4/5, Geir Magnusson Jr <[EMAIL PROTECTED]>: > for giggles and grins, did we really reach a conclusion to use > "internal"? I'm not challeng

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Etienne Gagnon
I think that using Sun's javac and Eclipse with their undocumented and unsupported options during the "transition period" seems the cleanest strategy for both class library and VM maintenance. I see no trouble having such a dependency for a limited period of time (a few months). Etienne Geir Mag

Re: Starting my next round on BootJVM

2006-04-05 Thread Enrico Migliore
bootjvm wrote: All, After some piecemeal fits and starts on the BootJVM code, I am about ready to get started on another round. I am checking in the opcode work that brings this JVM to a place of basic functioning except for the ATHROW opcode, which is my first order of business with this rou

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Etienne Gagnon
By specification, the general contract for misbehavior of JNI code is "undefined VM behavior", which can mean anything from "blow up" to "corrupt internal data structures": 11.8.1 No Checking for Programming Errors The JNI functions do not check for programming errors. Passing illegal argument

Re: svn commit: r391586 - in /incubator/harmony/enhanced/classlib/trunk: make/patternsets/ modules/crypto/META-INF/ modules/crypto/make/common/ modules/crypto/src/main/java/javax/crypto/ modules/crypt

2006-04-05 Thread Geir Magnusson Jr
for giggles and grins, did we really reach a conclusion to use "internal"? I'm not challenging you as much asking for help with my failing memory... [EMAIL PROTECTED] wrote: Author: mloenko Date: Wed Apr 5 04:27:45 2006 New Revision: 391586 URL: http://svn.apache.org/viewcvs?rev=391586&view

Re: [jira] Created: (HARMONY-263) Enable more LUNI tests to run using XML exclusion list

2006-04-05 Thread Geir Magnusson Jr
George Harley wrote: Geir Magnusson Jr wrote: not yet :) Is this holding up something (besides the other approach?) Hi, Hopefully once we have agreed on an approach then we can start running all of the tests that are currently not being run. For the other approach I have hacked together

Re: New IBM VME

2006-04-05 Thread Geir Magnusson Jr
Cool - I assume you can make the new version available before we make changes to the classlib? IOW, make both available and known to the project (so developers on the project can work on the changes) and then when we get our stuff done, we'll point users to the new version? geir Oliver Deaki

Re: [classlib] Switching to a 5.0 compiler

2006-04-05 Thread Geir Magnusson Jr
Tim Ellison wrote: A while ago we agreed to switch to a class library compilation story that would allow us to use 1.5 Java syntax on a 1.4-compatible VM (i.e. using syntax that is erased by the compiler). Here's where I'm at... Using the Sun compiler: Specifying source=1.5 and target=1.4 (

[classlib] Switching to a 5.0 compiler

2006-04-05 Thread Tim Ellison
A while ago we agreed to switch to a class library compilation story that would allow us to use 1.5 Java syntax on a 1.4-compatible VM (i.e. using syntax that is erased by the compiler). Here's where I'm at... Using the Sun compiler: Specifying source=1.5 and target=1.4 (understandably) fails a

Re: New IBM VME

2006-04-05 Thread Richard Liang
Oliver Deakin wrote: Hi all, I'm pleased to announce that a new IBM VME will be made available soon at: http://www-128.ibm.com/developerworks/java/jdk/harmony/index.html The new VME downloads are named Harmony-vme-win.IA32-v2.zip and Harmony-vme-linux.IA32-v2.tar.gz. I would like to stress

Re: [jira] Assigned: (HARMONY-249) javax.crypto.spec.PBEKeySpec constructors exception behaviour doesn't match reference implementation

2006-04-05 Thread Mark Hindess
Stepan, Thanks for picking this up. This patch is trivial so it doesn't really matter, but I should mention that I'm keeping up to date versions of all my outstanding JIRA patches against the current trunk - i.e. resolving clashes, applying file renames, etc. While I don't want to spam everyone b

Re: [vmi] JNI spec interpretation?

2006-04-05 Thread Tim Ellison
Archie Cobbs wrote: > Etienne Gagnon wrote: >> It seems that the launcher assumes that it is OK to call >> (*env)->ExceptionDescribe() even when there is no pending exception. > > Definitely sounds like a bug (in the launcher) to me. I've modified the launcher to behave better. So what should a