Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361303 - date and timestamp is not being converted to any correctly
Summary: date and timestamp is not being converted to any correctly
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Scott Greer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-18 16:05 EDT by Jing Qian 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 Jing Qian CLA 2011-10-18 16:05:08 EDT
run the following handler, you get $inst is not defined exception in FF external browser.

This is critical, because the the "expect" method is being used in the eunit basic LogResult library for all the primitive types, so this makes ALL the date/timestamp test cases have errors.

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

	private const ACTUALHEADER string = "Actual value = ";
    private const EXPECTEDHEADER string = "Expected value = ";


    function start()
    	a, b date;
    	syslib.writeStdout("a: " + a);
    	syslib.writeStdout("b: " + b);
    	
    	t1, t2 timestamp("yyyyMMdd");
    	syslib.writeStdout("t1: " + t1);
    	syslib.writeStdout("t2: " + t2);
    	
    	    	
    	s String = expect(a, b);
    	syslib.writeStdout("s: " + s);
    	
    	s2 String = expect(t1, t2);
    	syslib.writeStdout("s2: " + s);    	
    end
    
    private function expect(expected any in, actual any in) returns (String)
        standardMsg string = "Failed: " + EXPECTEDHEADER + "'" + expected + "' " + ACTUALHEADER + "'" + actual + "' ";
        return (standardMsg);
    end
end
Comment 1 Scott Greer CLA 2011-10-18 19:59:57 EDT
Fixed;  removed the last of the runtime references to the old defaultFormat fields, consistent with the EDT design changes regarding date / timestamp formats.
Comment 2 Jing Qian CLA 2011-10-19 11:06:05 EDT
still have issues
Comment 3 Scott Greer CLA 2011-10-19 13:32:56 EDT
Fixed (and this time I mean it!)
Comment 4 Jing Qian CLA 2011-10-20 16:51:51 EDT
this time, I get

a: 10/20/2011
b: 10/20/2011
t1: 2011-10-20-00.00.00.000000
t2: 2011-10-20-00.00.00.000000
s: Failed: undefined'10/20/2011' undefined'10/20/2011'
s2: Failed: undefined'10/20/2011' undefined'10/20/2011'

why is it saying undeinfed, it should be the string value of the constants defined inside the handler
Comment 5 Scott Greer CLA 2011-10-24 09:26:35 EDT
Fixed;  JS gen was missing a line of code required to handle field initialization on RUIHandlers.
Comment 6 Lisa Lasher CLA 2011-11-09 14:13:25 EST
This high severity defect was fixed several weeks ago, so I am closing.