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)
  • XDoclet 2
  • XDOCLET-71

ejb code generator should generate imports to resolve fully qualified type names

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0.7
  • Fix Version/s: None
  • Component/s: Maven2 plugin
  • Labels:
    None
  • Environment:
    all
  • Patch Submitted:
    Yes

Description

The template velocity files are incorrect, they print simple name (unqualified) for types, but they don't print imports.
This can occur in method return type, method parameter type, methods throws declaration...

cf
./src/main/java/org/xdoclet/plugin/ejb/interfaces/LocalHomeInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/LocalInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/RemoteHomeInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/RemoteInterfacePlugin.vm
./src/main/java/org/xdoclet/plugin/ejb/interfaces/ServiceEndpointPlugin.vm

patch to apply to files :

add the following lines in the header of the velocity files:

// <<<<<<<<<<<<<<<<<
#foreach( $imp in $class.getParent().getImports() )
import $imp;
#end
// >>>>>>>>>>>>>>>>>

Activity

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

People

  • Assignee:
    Unassigned
    Reporter:
    Arnaud Nauwynck
Vote (0)
Watch (0)

Dates

  • Created:
    18/Nov/09 8:45 AM
    Updated:
    18/Nov/09 8:45 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.