| Summary: | Content Assist provokes String Index Out Of Bounds Exception in "use" statement | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Kalin <kalin.a> | ||||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||||
| Status: | CLOSED INVALID | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 210738 [details]
screenshot-case2
no pdt issue. Closing... |
Created attachment 210737 [details] error log Have the following code in a php file (PHP 5.3 project): <?php namespace NN; class AA1{ } Have the next code in a second php file in the same project. <?php class BB1 extends AA1{ } class AA1 is not recognized, you have to add use statement. 1. Invoke Content Assist at the cursor position below and select "AA1 - NN" in CA list. <?php use NN\| class BB1 extends AA1 { } 2. Delete "\" just after NN and apply again Ctrl+Space Expected: 1. <?php use NN\AA1 class BB1 extends AA1 { } Actual: 1.Nothing happened. String Index Out Of Bounds Exception in the error log. 2. String Index Out Of Bounds Exception in a dialog. The text in the dialog says: ""Content Assist" did not complete normally. Please see the log for more information. String index out of range: 6" Found on Win 7.