Project: JDT
Bug 98847 Can't extract local from conditional.
Reported: 2005-06-07 17:49:22 | Status: verified fixed

Hilite all of the logic on LINE 2 (excluding the comment and whitespace), and try to Extract Local Variable. An error pops up saying "Currently no support to extract a single conditional expression." ------------------------------------- Bug.java ----------------------- class Bug{{equals( hashCode()>0?"a":"b" // LINE 2 );}}

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractTempTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringCoreMessages.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceParameterRefactoring.java