jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • QDox
  • QDOX-182

Type.toString() and Type.toGenericString() inconsequent for non-array innerclasses

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10
  • Fix Version/s: 1.10.1
  • Component/s: Java API
  • Labels:
    None

Description

public class Outer {
 private Inner ia;
 public class Inner { }
}

When you call toString() on ia, it'll return Outer$Inner (the FQN)
but when you call toGenericString() it returns Outer.Inner (the value)

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Robert Scholte added a comment - 15/Nov/09 7:22 AM

In QDox the JavaClass follows java.lang.Class including it's toString() implementation.
QDox' Type contains Type information of the JavaClass, so there's no defenition available in the java-specs.
The Type.toString() should be an improved version of getValue() because it adds array information. So don't use the FQN here.
Fixed in rev-678

Show
Robert Scholte added a comment - 15/Nov/09 7:22 AM In QDox the JavaClass follows java.lang.Class including it's toString() implementation. QDox' Type contains Type information of the JavaClass, so there's no defenition available in the java-specs. The Type.toString() should be an improved version of getValue() because it adds array information. So don't use the FQN here. Fixed in rev-678

People

  • Assignee:
    Robert Scholte
    Reporter:
    Robert Scholte
Vote (0)
Watch (0)

Dates

  • Created:
    15/Nov/09 6:50 AM
    Updated:
    15/Nov/09 7:22 AM
    Resolved:
    15/Nov/09 7:22 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.