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 ... ?

[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

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
>
>