harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Megha Chauhan" <megc...@gmail.com>
Subject Re: Modifying String Class
Date Wed, 30 Apr 2008 21:05:30 GMT
Thanks Pavel!! It worked.


On Wed, Apr 30, 2008 at 7:47 AM, Pavel Pervov <pmcfirst@gmail.com> wrote:

> Megha,
>
> Please, look into string_set_fields_separate (in
> vm/vmcore/src/util/vm_strings.cpp:207): there you'll find setting
> j/l/String object fields. You can add setting your additional field
> there.
>
> WBR,
>    Pavel.
> On 4/29/08, Megha Chauhan <megchau@gmail.com> wrote:
> > Hi,
> >
> > I am trying to modify the String Class and have added one more field
> which
> > keeps a copy of the value field.
> > I have added this field to all the constructors and it works fine when
> > creating an object with 'new' keyword.
> > I am having trouble getting this to work with constant strings. I have
> tried
> > to add this to vm_strings.cpp init_fields() method.
> > I have also tried to initialize the field in VM.intern() after the
> string is
> > returned from internmap.intern() but in this case the VM is not able to
> load
> > and crashes.
> > Can someone tell me what needs to be done to add a new field to
> String.java
> > and make constant strings have that field?
> > Thanks
> > Megha
> >
>
>
> --
> Pavel Pervov,
> Intel Enterprise Solutions Software Division
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message