Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Square brackets in Object References
Square brackets in Object References [message #21506] Mon, 11 July 2005 15:44 Go to next message
Eclipse UserFriend
Originally posted by: jan.luciad_nospam.com

Hi,

I'm profiling an application to a memory leak and I regularly see names
preceded by a square bracket. Sometimes two. I would especially like to
understand this because I have a "[Object" keeping a reference to the
objects that should be collected.

Is this something internal to Java, a TPTP naming convention, or ... ?

Can somebody help me with this ? Many thanks !

Best Regards,

Jan
Re: Square brackets in Object References [message #21619 is a reply to message #21506] Mon, 11 July 2005 16:46 Go to previous messageGo to next message
Marius Slavescu is currently offline Marius SlavescuFriend
Messages: 67
Registered: July 2009
Member
Hi Jan,

[Object represents an one-dimensional array of objects of type Object or any
subtype of Object.
Each [ will represent a dimension, e.g. [[String represents a bidimensional
array of objects of type String or any subtype of Object.

This representation comes from Java (actually JNI signature), as we go
through the process of refactoring TPTP to support more naturally non-Java
languages would be good to replace this representation (at least in the UI)
to something more generic like Object[] or String[][].
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=87335 for more info about
this refactoring.

Regards,
Marius

"Jan Goyvaerts" <jan@luciad_nospam.com> wrote in message
news:dau45d$c9i$1@news.eclipse.org...
> Hi,
>
> I'm profiling an application to a memory leak and I regularly see names
> preceded by a square bracket. Sometimes two. I would especially like to
> understand this because I have a "[Object" keeping a reference to the
> objects that should be collected.
>
> Is this something internal to Java, a TPTP naming convention, or ... ?
>
> Can somebody help me with this ? Many thanks !
>
> Best Regards,
>
> Jan
Re: Square brackets in Object References [message #21663 is a reply to message #21619] Mon, 11 July 2005 16:50 Go to previous message
Marius Slavescu is currently offline Marius SlavescuFriend
Messages: 67
Registered: July 2009
Member
Correction "String or any subtype of String" instead of "String or any
subtype of Object".

"Marius Slavescu" <slavescu@ca.ibm.com> wrote in message
news:dau7oa$h6t$1@news.eclipse.org...
> Hi Jan,
>
> [Object represents an one-dimensional array of objects of type Object or
any
> subtype of Object.
> Each [ will represent a dimension, e.g. [[String represents a
bidimensional
> array of objects of type String or any subtype of Object.
>
> This representation comes from Java (actually JNI signature), as we go
> through the process of refactoring TPTP to support more naturally non-Java
> languages would be good to replace this representation (at least in the
UI)
> to something more generic like Object[] or String[][].
> See https://bugs.eclipse.org/bugs/show_bug.cgi?id=87335 for more info
about
> this refactoring.
>
> Regards,
> Marius
>
> "Jan Goyvaerts" <jan@luciad_nospam.com> wrote in message
> news:dau45d$c9i$1@news.eclipse.org...
> > Hi,
> >
> > I'm profiling an application to a memory leak and I regularly see names
> > preceded by a square bracket. Sometimes two. I would especially like to
> > understand this because I have a "[Object" keeping a reference to the
> > objects that should be collected.
> >
> > Is this something internal to Java, a TPTP naming convention, or ... ?
> >
> > Can somebody help me with this ? Many thanks !
> >
> > Best Regards,
> >
> > Jan
>
>
Previous Topic:Best TPTP version for eclipse 3.1
Next Topic:Dead-end object references ?
Goto Forum:
  


Current Time: Tue Apr 16 14:40:16 GMT 2024

Powered by FUDForum. Page generated in 0.32790 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top