Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354159

Summary: replaceStr java runtime is missing
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javagen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-08-08 12:08:44 EDT
EGL code

	function runPatternUtilFunction27(utility TestUtil)
		actualStr = "abcdefabcdefabcdefab".replaceStr("abc", "xyz");
		expectedStr = "xyzdefxyzdefxyzdefab";
	end

java code
	public void runPatternUtilFunction28(AnyBoxedObject<TestUtil> utility) {
		String eze$Temp52 = Constants.EMPTY_STRING;
		eze$Temp52 = "cbc";
		String eze$Temp53 = Constants.EMPTY_STRING;
		eze$Temp53 = "xyz";
		actualStr = "abcdefabcdefabcdefab".replaceStr(eze$Temp52, eze$Temp53);
		expectedStr = "abcdefabcdefabcdefab";
	}

Java compile error:
The method replaceStr(String, String) is undefined for the type String
Comment 1 Kathy Carroll CLA 2011-08-08 12:15:54 EDT
matchesPattern(string)/ (string, string) and isLike(string)/(string, string) are also missing
actual boolean;
actual = "abcdef".matchesPattern("a?c*");
actual = "abcdef".isLike("a_c%");

... let me know if you need separate defects for theses
Comment 2 Kathy Carroll CLA 2011-08-08 12:18:37 EDT
string also needs
  clip()
  clipLeading()
  charCodeAt(int)
Comment 3 Jeff Douglas CLA 2011-08-08 15:49:23 EDT
fixed
Comment 4 Lisa Lasher CLA 2011-10-11 16:04:47 EDT
Closing this defect.