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

JavaMethod.equals() failed for constructors

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.3
  • Component/s: Java API
  • Labels:
    None
  • Environment:
    Windows 2K
    CVS Tarball (2003-09-01)
    Sun JDK 1.4.1

Description

A NullPointerException is raised when testing equality between two constructors. The field "returnType" is null for a constructor which lead to the exception at line 64 in JavaMethod.
A workaround is to test if the returnType of the JavaMethod instance is null before testing return types.

if(getReturns() != null) { if (!m.getReturns().equals(getReturns())) return false; }

I also noticed that the JavaMethodTest unit test only focuses on method testing and not on constructor testing.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Mike Williams
    Reporter:
    Laurent Etiemble
Vote (0)
Watch (0)

Dates

  • Created:
    04/Sep/03 8:29 AM
    Updated:
    04/Sep/03 6:38 PM
    Resolved:
    04/Sep/03 6:38 PM
  • 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.