Re: java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-23 Thread Tim Ellison
Geir Magnusson Jr wrote: > Oliver Deakin wrote: >> Hi Alexey, >> >> ok, Ive recreated your problem using the latest snapshot and VME. >> Essentially the code at >> modules/kernel/src/main/java/java/lang/String.java is the same as that >> in the VME kernel.jar. Looking in there (these calls can also

Re: java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-22 Thread Sergey Soldatov
Ah. My fault. Forgot that they're now using regex patterns as the parameters. On 2/22/06, Oliver Deakin <[EMAIL PROTECTED]> wrote: > > Sergey Soldatov wrote: > > But the way, how it affects the performance? java.lang.String is the > most > > used class and even such simple operations will cause lo

Re: java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-22 Thread Oliver Deakin
Sergey Soldatov wrote: But the way, how it affects the performance? java.lang.String is the most used class and even such simple operations will cause loading of full regex package. Do you have another solution in mind that would avoid the regex package load? On 2/21/06, Oliver Deakin <[

Re: java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-21 Thread Sergey Soldatov
But the way, how it affects the performance? java.lang.String is the most used class and even such simple operations will cause loading of full regex package. On 2/21/06, Oliver Deakin <[EMAIL PROTECTED]> wrote: > > Hi Alexey, > > Looking in there (these calls can also be seen if > the test is ru

Re: java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-21 Thread Geir Magnusson Jr
Oliver Deakin wrote: Hi Alexey, ok, Ive recreated your problem using the latest snapshot and VME. Essentially the code at modules/kernel/src/main/java/java/lang/String.java is the same as that in the VME kernel.jar. Looking in there (these calls can also be seen if the test is run within a

Re: java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-21 Thread Alexey Petrenko
2006/2/21, Oliver Deakin <[EMAIL PROTECTED]>: > As a sideline, I think we should be able to move String.java out of > kernel entirely anyway. We already have an implementation at > modules/kernel/src/main/java/java/lang/String.java, and the only VM > specific code in String is the intern() method.

Re: java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-21 Thread Oliver Deakin
Hi Alexey, ok, Ive recreated your problem using the latest snapshot and VME. Essentially the code at modules/kernel/src/main/java/java/lang/String.java is the same as that in the VME kernel.jar. Looking in there (these calls can also be seen if the test is run within a debugger), we see that

java.lang.String.replaceFirst from IBM VM throws NPE

2006-02-21 Thread Alexey Petrenko
We got problem with Harmony on IBM VM on Windows. java.lang.String.replaceFirst throws NPE. Here is the testcase: public class Test { public static void main(String args[]) { String xx = "test"; xx = xx.replaceFirst("t","z"); } } Here is the stack trace: C:\Work\Harmony\So