| Summary: | exception stack trace on $ as a type name | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Philippe Marschall <philippe.marschall> | ||||||||
| Component: | General | Assignee: | Chris Jaun <cmjaun> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||||
| Severity: | major | ||||||||||
| Priority: | P3 | CC: | cbridgha, cmjaun, david_williams | ||||||||
| Version: | 3.3 | Flags: | david_williams:
pmc_approved+
cmjaun: pmc_approved? (raghunathan.srinivasan) cmjaun: pmc_approved? (naci.dai) cmjaun: pmc_approved? (deboer) cmjaun: pmc_approved? (neil.hauge) cmjaun: pmc_approved? (kaloyan) cbridgha: pmc_approved+ thatnitind: review+ |
||||||||
| Target Milestone: | 3.2.4 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | PMC_approved | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Philippe Marschall
Created attachment 193958 [details]
sample library file to reproduce the issue
Created attachment 193959 [details]
the same without dollar and everything works
Created attachment 194085 [details]
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.
Many JavaScript libraries use the $ as type names, jquery being one of the most prominent. We should not be throwing exceptions on $ type names.
Is there a work-around? If so, why do you believe the work-around is insufficient?
No.
How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
Updated our InferTypesTest to have examples with $ in the type names. It has also been tested manually in content assist and hover help scenarios.
Give a brief technical overview. Who has reviewed this fix?
In JDT a $ had been used as a special character in type signatures to represent inner types. We don't have inner types in JSDT and made updates to treat $ as a normal character in signatures.
What is the risk associated with this fix?
It is possible there is still some code that expects $ to be a special character, but testing so far has not revealed any problems.
Checked into 3.2.4. Checked into HEAD. Thanks for fixing so quickly. |