[Pharo-project] Issue 3515 in pharo: Failing Test: RBInlineMethodFromComponentTest.testInlineEmptyComponentMethod

pharo at googlecode.com pharo at googlecode.com
Sun Feb 6 10:40:31 CET 2011


Comment #1 on issue 3515 by marcus.d... at gmail.com: Failing Test:  
RBInlineMethodFromComponentTest.testInlineEmptyComponentMethod
http://code.google.com/p/pharo/issues/detail?id=3515

Error Message

implementorToInline
Stacktrace

Refactoring class(Object)>>error:
[:ref :imps | self error: #implementorToInline] in Refactoring  
class>>initializeRefactoringOptions
InlineMethodFromComponentRefactoring(Refactoring)>>requestImplementorToInline:
InlineMethodFromComponentRefactoring>>inlineClass
InlineMethodFromComponentRefactoring>>isOverridden
[self findSelectedMessage.
	self isOverridden
		ifTrue: [self
				refactoringWarning: ('<1p>>><2s> is overriden. Do you want to inline it  
anyway?' expandMacrosWith: self inlineClass with: self inlineSelector)].
	self parseInlineMethod.
	self isPrimitive
		ifTrue: [self refactoringError: 'Cannot inline primitives'].
	self checkSuperMessages.
	self rewriteInlinedTree.
	(sourceMessage parent isReturn
			or: [self hasMultipleReturns not])
		ifFalse: [self refactoringError: 'Cannot inline method since it contains  
multiple returns that cannot be rewritten'].
	true] in  
InlineMethodFromComponentRefactoring(InlineMethodRefactoring)>>preconditions
RBCondition>>check
RBConjunctiveCondition>>check
InlineMethodFromComponentRefactoring(Refactoring)>>checkPreconditions
InlineMethodFromComponentRefactoring(Refactoring)>>primitiveExecute
RBInlineMethodFromComponentTest(RBRefactoringBrowserTest)>>executeRefactoring:
[refactoring := InlineMethodFromComponentRefactoring
				inline: (self
						convertInterval: (35 to: 91)
						for: (RBRefactoryTestDataApp sourceCodeAt: #inlineComponent))
				inMethod: #inlineComponent
				forClass: RBRefactoryTestDataApp.
	self setupInlineExpressionFor: refactoring toReturn: false.
	self executeRefactoring: refactoring] in  
RBInlineMethodFromComponentTest>>testInlineEmptyComponentMethod
BlockClosure>>on:do:
RBInlineMethodFromComponentTest(RBRefactoringBrowserTest)>>proceedThroughWarning:
RBInlineMethodFromComponentTest>>testInlineEmptyComponentMethod
RBInlineMethodFromComponentTest(TestCase)>>performTest





More information about the Pharo-project mailing list