Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-4

Hierarchy support in ToStringBuilder.reflectionToString()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.0
    • None
    • None
    • Operating System: other
      Platform: Other

    • 15257

    Description

      I just discovered that the method ToStringBuilder.reflectionToString() does not
      work in a class hierarchy.

      For example:

      class A defines inst var a.
      class B extends A defines inst var b.

      new A().toString returns "a=..."
      new B().toString returns "b=..."

      when I expected new B().toString to return "a=...,b=..."

      Can I use reflectionToString() to accomplish this?

      Thank you for considering this request.

      Gary

      Attachments

        Activity

          People

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: