Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360729 - egl.eglx.lang.EString.startsWith is not a function
Summary: egl.eglx.lang.EString.startsWith is not a function
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-10-12 16:53 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 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-10-12 16:53:56 EDT
egl.eglx.lang.EString.startsWith is not a function
egl.eglx.lang.EString.endsWith is not a function


egl.eglx.lang.EString.startsWith is not a function
[CRRUI2094E] Here are the EGL function calls leading to this error:

    client/StringTester.egl() at line 17
    client/StringTester.egl() at line 12
    StringTester.<init>() [native JavaScript]

    start() at line 68
egl.eglx.lang.EString.startsWith is not a function
Simple/client/StringTester.js?contextKey=38:68
[CRRUI2095E] Could not find the EGL function calls leading to this error

for

handler StringTester type RUIhandler{initialUI =[    ],
 onConstructionFunction = start, 
 cssFile = "css/Simple.css", 
 title = "StringTester"}

    function start()
    	syslib.writestdout("start test");
    	testStartsWith();
    	syslib.writestdout("end test");
    end
    
    function testStartsWith()
    	result boolean = "abcedf".startsWith("abc");
    	if (result)
    		syslib.writestdout("good");
    	else
    		syslib.writestdout("bad");
    	end
    end
end
Comment 1 Kathy Carroll CLA 2011-10-13 08:39:51 EDT
added this to the testcase

    function testMatches()
        result boolean = "abcedf".matchesPattern("a?c*");
        if (result)
            syslib.writestdout("good");
        else
            syslib.writestdout("bad");
        end
    end
Comment 2 Scott Greer CLA 2011-10-13 21:35:08 EDT
Fixed the RT impls. of startsWith, endsWith, matchesPattern
Comment 3 Kathy Carroll CLA 2011-10-17 17:54:31 EDT
Verified with build 201110170901 & closed