| Summary: | "Extract function" Internal Error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Roland Schulz <roland> | ||||
| Component: | cdt-refactoring | Assignee: | Project Inbox <cdt-refactoring-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Emanuel Graf <emanuel> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug, malaperle, yevshif | ||||
| Version: | 7.0.1 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Attached file? ;) Can you attach a sample file to help reproduce the problem? Created attachment 189340 [details]
Example for refactoring problem
Sorry I forgot to attach the file.
I just tested it with 8.0M5 and it has it fixed. Leaving as NEW because I don't know whether you want to fix it in 7.x. I think it's too late for 7.x, RC4 has already passed. http://www.eclipse.org/epp/download.php Thanks for testing with 8.0. Fixed in HEAD |
Trying to extract a function, selecting a return value is not possible. Both the list of possible return values and the option "no return value (void)" are greyed out. Clicking Next or Finish causes an Internal error: Root exception: java.lang.NullPointerException at org.eclipse.cdt.internal.ui.refactoring.extractfunction.ExtractStatement.determineReturnType(ExtractStatement.java:51) Steps to reproduce: 1. select lines 293-317 (inclusive) of attached file 2. Refactor->Extract Function