| Summary: | Component interfaces for EJB 3.x beans are created with wrong package declaration if default package is changed in wizard | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP EJB Tools | Reporter: | Roberto Sanchez Herrera <shr31223> | ||||
| Component: | jst.ejb | Assignee: | Roberto Sanchez Herrera <shr31223> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Kaloyan Raev <kaloyan> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cbridgha, ccc, neil.hauge | ||||
| Version: | 3.2.5P | Flags: | shr31223:
pmc_approved?
(david_williams) shr31223: pmc_approved? (raghunathan.srinivasan) shr31223: pmc_approved? (naci.dai) shr31223: pmc_approved? (deboer) neil.hauge: pmc_approved+ shr31223: pmc_approved? (kaloyan) shr31223: pmc_approved? (cbridgha) kaloyan: review+ |
||||
| Target Milestone: | 3.3.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | PMC_Approved | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 370256 | ||||||
| Attachments: |
|
||||||
|
Description
Roberto Sanchez Herrera
Created attachment 210209 [details]
Proposed patch
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
This defect generates code with compilation errors. This bug is more likely to occur if a default package for component interfaces different than the default package for bean class is used (see description in this bug)
* Is there a work-around? If so, why do you believe the work-around is insufficient?
The only work-around would be to either always use the same package for bean class and for component interfaces, or edit the generated component interfaces so the package declaration matches the package in which the interface was created. I do not think either is acceptable.
* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
Tested manually and ran the existing JUnits to make sure the change does not break existing testing.
* Give a brief technical overview. Who has reviewed this fix?
The new EJB 3.x session bean wizard gives the user the option to add legacy (EJB 2.x) home and component interfaces to the session bean. The wizard also allows the user to specify in which package these legacy interfaces will be created. But for component interfaces, the wizard ignores the package specified by the user, and always uses the same package than the bean class. This is because while the component interfaces are generated using JET templates, the bean package is always used. The change consists on changing the JET template to use the right method from the model to pick the package specified by the user.
Kaloyan Raev reviewed the fix.
* What is the risk associated with this fix?
Low.
Code committed to R3_3_maintenance and HEAD for WTP 3.3.2 and 3.4. Resolving bug |