| Summary: | [hotbug] Would like to be able to pass multiple runtimeTypeIds to ServerUIUtil.showNewRuntimeWizard | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Ian Trimble <ian.trimble> | ||||||||
| Component: | wst.server | Assignee: | Angel Vera <arvera> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Angel Vera <arvera> | ||||||||
| Severity: | enhancement | ||||||||||
| Priority: | P3 | CC: | david_williams, eyuen7, konstantin, raghunathan.srinivasan | ||||||||
| Version: | 3.2 | Flags: | arvera:
pmc_approved?
(david_williams) raghunathan.srinivasan: pmc_approved+ arvera: pmc_approved? (naci.dai) arvera: pmc_approved? (deboer) arvera: pmc_approved? (neil.hauge) arvera: pmc_approved? (kaloyan) arvera: pmc_approved? (cbridgha) |
||||||||
| Target Milestone: | 3.3 RC2 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| See Also: | https://git.eclipse.org/r/109048 | ||||||||||
| Whiteboard: | PMC_approved, ORACLE_P1 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Ian Trimble
Created attachment 189630 [details]
Patch that allows ServerUtil to parse a comma-delimited String in a backwards-compatible manner
Any chance of getting this reviewed for the 3.3 release? Perhaps this got missed... Is anyone monitoring wst.server inbox? This is a hotbug request. 1. Affiliation - Oracle 2. Release you want this bug to be fixed in - WTP 3..3 - Indigo 3. Justify why this is a hot bug and why it needs to be fixed in that release As explained in the description, this issue blocks a feature in the adopter product that requires the runtime type to be filtered by more than one runtime type, where there is no common prefix we can pass. The change looks safe enough. Having said that, having the comma separated string looks like an implicit way to pass in a list. Should we introduce a new that accepts String[] instead? (In reply to comment #5) Good point Elson. We typically accept string separated commas for extension point definitions, but not in an API. Ian, Is creating a new API that accepts an array of runtime types an acceptable solution? Created attachment 195996 [details]
v2.0
This would be the suggested changes, do they work for you?
(In reply to comment #7) > Created attachment 195996 [details] > v2.0 > This would be the suggested changes, do they work for you? This doesn't get me what I need, since I need to call ServerUIUtil.showNewRuntimeWizard, which eventually calls ServerUtil. Since the String is passed through about 6 methods (from ServerUIUtil until it finally gets to ServerUtil), I'd need String[] equivalents all the way up to ServerUIUtil. This is why I proposed leaving the signature as a String but changing the implementation (in ServerUtil) to understand comma-separated lists. The currently-proposed change does not solve the original issue. If we need to use the String as in the original patch, we'll need to make sure we update the javadoc to reflect this change. Created attachment 196023 [details]
v1.1
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 is a hotbug requested by an adopter.
Is there a work-around? If so, why do you believe the work-around is insufficient?
No workaround
How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
- Ran the jUnits for this area
- Ran through a scenarios that will call the method to ensure that there is no regression from the UI point of view
Give a brief technical overview. Who has reviewed this fix?
Angel
What is the risk associated with this fix?
low
Thanks for addressing this issue. changes committed to HEAD Thanks for the patch, it is appreciated. - Ian changes released to HEAD New Gerrit change created: https://git.eclipse.org/r/109048 |