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)
Signup
groovy
  • groovy
  • GROOVY-3951 Groovy 1.8 runtime performance improv...
  • GROOVY-4559

enable more direct super constructor calls

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.8.2, 1.9-beta-3
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

class A extends Closure {
  A(Object o) {
    super (o)
  }
}

In this case we create a selectAndtransform version for selecting the constructor call, even though it Closure has only one constructor taking one argument and this constructor takes Object, so is surely fitting for o, which is Object as well. Instead a direct constructor call should be done.

This will improve speed and decrease bytecode bloat.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity

People

  • Assignee:
    blackdrag blackdrag
    Reporter:
    blackdrag blackdrag
Vote (0)
Watch (0)

Dates

  • Created:
    05/Dec/10 4:45 AM
    Updated:
    29/Aug/11 2:08 PM
    Resolved:
    29/Aug/11 2:08 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.