Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354159 - replaceStr java runtime is missing
Summary: replaceStr java runtime is missing
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 12:08 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.