Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-08 Thread Stepan Mishura
On 8/8/06, Jimmy, Jing Lv wrote: Stepan Mishura wrote: > On 8/7/06, *Jimmy, Jing Lv* wrote: > > > Sounds pretty good :) > "exec" do helps, it can check simple situations. > What I'm concern is that if the return code is not enough for some > situations, e.g, what exception

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-08 Thread Jimmy, Jing Lv
Stepan Mishura wrote: On 8/7/06, *Jimmy, Jing Lv* wrote: Sounds pretty good :) "exec" do helps, it can check simple situations. What I'm concern is that if the return code is not enough for some situations, e.g, what exception is thrown exactly, or what cause VM exit ab

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Stepan Mishura
On 8/7/06, Jimmy, Jing Lv  wrote: Sounds pretty good :)"exec" do helps, it can check simple situations.What I'm concern is that if the return code is not enough for some situations, e.g, what exception is thrown exactly, or what cause VM exitabnormally. IMHO, it is still necessary for us.   Hi Jimm

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Leo Li
On 8/7/06, Jimmy, Jing Lv <[EMAIL PROTECTED]> wrote: Leo Li wrote: > Hi, all: > I have some idea to test instrument. > For example, if we would like to test > Instrumentation.addTransformerwill throw NullPointerException if the > argument is null, > we can first write a TestInstrumen

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Vladimir Ivanov
On 8/7/06, Alexey Varlamov <[EMAIL PROTECTED]> wrote: And you forgot to mention cases when tested VM hangs :) Still, almost any of those situations may be tested automatically, just fork a tested JVM and setup timeout watchdog. You may examine 1) return value (via j.lProcess.exitValue()); 2) ou

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Geir Magnusson Jr
Jimmy, Jing Lv wrote: > Geir Magnusson Jr wrote: >> >> Jimmy, Jing Lv wrote: >>> Richard Liang wrote: Jimmy, Jing Lv wrote: > Hi, > > As it is hard to write unit test for package instrument, I now > have an idea: write down some documents for details of non-unit test

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Alexey Varlamov
2006/8/7, Jimmy, Jing Lv <[EMAIL PROTECTED]>: Leo Li wrote: > Hi, all: > I have some idea to test instrument. > For example, if we would like to test > Instrumentation.addTransformerwill throw NullPointerException if the > argument is null, > we can first write a TestInstrument with p

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Jimmy, Jing Lv
Leo Li wrote: Hi, all: I have some idea to test instrument. For example, if we would like to test Instrumentation.addTransformerwill throw NullPointerException if the argument is null, we can first write a TestInstrument with premain function. import java.lang.instrument.Instrumentat

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Jimmy, Jing Lv
Paulex Yang wrote: Jimmy, Jing Lv wrote: Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain: 1. The test run on which platform, including speci

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-07 Thread Leo Li
Hi, all: I have some idea to test instrument. For example, if we would like to test Instrumentation.addTransformerwill throw NullPointerException if the argument is null, we can first write a TestInstrument with premain function. import java.lang.instrument.Instrumentation; public cla

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-06 Thread Jimmy, Jing Lv
Geir Magnusson Jr wrote: Jimmy, Jing Lv wrote: Richard Liang wrote: Jimmy, Jing Lv wrote: Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain:

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-06 Thread Paulex Yang
Jimmy, Jing Lv wrote: Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain: 1. The test run on which platform, including special environment; 2. T

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-06 Thread Jimmy, Jing Lv
Richard Liang wrote: Jimmy, Jing Lv wrote: Richard Liang wrote: Jimmy, Jing Lv wrote: Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain:

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-06 Thread Geir Magnusson Jr
Jimmy, Jing Lv wrote: > Richard Liang wrote: >> >> >> Jimmy, Jing Lv wrote: >>> Hi, >>> >>> As it is hard to write unit test for package instrument, I now >>> have an idea: write down some documents for details of non-unit test >>> cases for instrument. The detail of such test cases contain:

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-06 Thread Richard Liang
Jimmy, Jing Lv wrote: Richard Liang wrote: Jimmy, Jing Lv wrote: Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain: Do you mean it's hard

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-06 Thread Jimmy, Jing Lv
Richard Liang wrote: Jimmy, Jing Lv wrote: Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain: Do you mean it's hard to *write* unit test or i

Re: [classlib] Plan on work on java.lang.instrument

2006-08-04 Thread Gregory Shimansky
2006/8/3, Paulex Yang <[EMAIL PROTECTED]>: Gregory Shimansky wrote: > I don't think there is any conversion required. I believe -javaagent is a VM > option and should be handled internally by the invocation API in case there > is a 3rd party launcher/plugin which tries to use VM's invocation API

Re: [classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-03 Thread Richard Liang
Jimmy, Jing Lv wrote: Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain: Do you mean it's hard to *write* unit test or it's hard to integrate

Re: [classlib] Plan on work on java.lang.instrument

2006-08-03 Thread Jimmy, Jing Lv
Paulex Yang wrote: Gregory Shimansky wrote: On Wednesday 02 August 2006 17:30 Paulex Yang wrote: Alexey Varlamov wrote: [SNIP] For native codes, instrument need a new directory in modules/luni/src/main/native named "instrument", in my plan, there should be two native code, on

[classlib][Instrument] Documents for non-unit-tests (was Re:[classlib] Plan on work on java.lang.instrument)

2006-08-03 Thread Jimmy, Jing Lv
Hi, As it is hard to write unit test for package instrument, I now have an idea: write down some documents for details of non-unit test cases for instrument. The detail of such test cases contain: 1. The test run on which platform, including special environment; 2. The test description; 3.

Re: [classlib] Plan on work on java.lang.instrument

2006-08-02 Thread Paulex Yang
Gregory Shimansky wrote: On Wednesday 02 August 2006 17:30 Paulex Yang wrote: Alexey Varlamov wrote: [SNIP] For native codes, instrument need a new directory in modules/luni/src/main/native named "instrument", in my plan, there should be two native code, one for instrument

Re: [classlib] Plan on work on java.lang.instrument

2006-08-02 Thread Gregory Shimansky
On Wednesday 02 August 2006 17:30 Paulex Yang wrote: > Alexey Varlamov wrote: > > [SNIP] > > > >> For native codes, instrument need a new directory in > >> modules/luni/src/main/native named "instrument", in my plan, there > >> should be two native code, one for instrument native implementation

Re: [classlib] Plan on work on java.lang.instrument

2006-08-02 Thread Paulex Yang
Alexey Varlamov wrote: [SNIP] For native codes, instrument need a new directory in modules/luni/src/main/native named "instrument", in my plan, there should be two native code, one for instrument native implementation, and another for laugher (for parameter "-javaagent"). Instrument shall be

Re: [classlib] Plan on work on java.lang.instrument

2006-08-02 Thread Alexey Varlamov
[SNIP] For native codes, instrument need a new directory in modules/luni/src/main/native named "instrument", in my plan, there should be two native code, one for instrument native implementation, and another for laugher (for parameter "-javaagent"). Instrument shall be compiled into a .DLL(.s

Re: [classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Jimmy, Jing Lv
Jimmy, Jing Lv wrote: Stepan Mishura wrote: On 8/2/06, Jimmy, Jing Lv wrote: Hi, If no objection, I shall go on with the plan of instrument :) Refer to Harmony status page[1], INSTRUMENT is missing, so this module shall named as "instrument". I shall open a wiki-page for its status l

Re: [classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Jimmy, Jing Lv
Stepan Mishura wrote: On 8/2/06, Jimmy, Jing Lv wrote: Hi, If no objection, I shall go on with the plan of instrument :) Refer to Harmony status page[1], INSTRUMENT is missing, so this module shall named as "instrument". I shall open a wiki-page for its status like other modules on [2

Re: [classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Jimmy, Jing Lv
Stepan Mishura wrote: Yes, it is. But accoriding to [1] the code should be put into separate 'instrument' module. So the patch should start with 'modules/'instrument'. Ah ... you are right, thanks very much Stepan! :) So I shall put code to modules/ instrument/ src/main/java/java/l

Re: [classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Geir Magnusson Jr
Never appeal to me using a Wiki as an authority :) It's like finding something written in chalk on the sidewalk. However, if you had pointed out http://incubator.apache.org/harmony/auth_cont_quest.html I'd have agreed w/o having the opportunity to make fun of the Wiki. So I agree :) geir

Re: [classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Stepan Mishura
Yes, it is. But accoriding to [1] the code should be put into separate 'instrument' module. So the patch should start with 'modules/'instrument'. Thanks, Stepan. [1]http://wiki.apache.org/harmony/componentization On 8/2/06, Geir Magnusson Jr wrote: It is a lang package, right? Stepan Mishur

Re: [classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Geir Magnusson Jr
It is a lang package, right? Stepan Mishura wrote: > On 8/2/06, Jimmy, Jing Lv wrote: >> >> Hi, >> >> If no objection, I shall go on with the plan of instrument :) >> Refer to Harmony status page[1], INSTRUMENT is missing, so this >> module shall named as "instrument". I shall open a wiki

Re: [classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Stepan Mishura
On 8/2/06, Jimmy, Jing Lv wrote: Hi, If no objection, I shall go on with the plan of instrument :) Refer to Harmony status page[1], INSTRUMENT is missing, so this module shall named as "instrument". I shall open a wiki-page for its status like other modules on [2]. For Java codes,

[classlib] Plan on work on java.lang.instrument

2006-08-01 Thread Jimmy, Jing Lv
Hi, If no objection, I shall go on with the plan of instrument :) Refer to Harmony status page[1], INSTRUMENT is missing, so this module shall named as "instrument". I shall open a wiki-page for its status like other modules on [2]. For Java codes, API classes/interfaces can be a