Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362624 - The pattern does not work for the timestamp
Summary: The pattern does not work for the timestamp
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: Huang Ji Yong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 00:32 EDT by fahua jin CLA
Modified: 2017-02-23 14:19 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fahua jin CLA 2011-11-02 00:32:35 EDT
Build Identifier: 0.7.0.v201111012101

Below two lines of code work fine with Java program, it prints such as 12:28:23 in the console. But it does not work with JSGenerator.

		ts timeStamp("hhmmss");
		syslib.writeStdout(ts);

Reproducible: Always
Comment 1 fahua jin CLA 2011-11-02 00:36:38 EDT
(In reply to comment #0)
> Build Identifier: 0.7.0.v201111012101
> 
> Below two lines of code work fine with Java program, it prints such as 12:28:23
> in the console. But it does not work with JSGenerator.
> 
>         ts timeStamp("hhmmss");
>         syslib.writeStdout(ts);
> 
> Reproducible: Always

Pengfei, not sure if it's possible to add some test cases for the pattern in EUnit? Thanks.
Comment 2 pf yu CLA 2011-11-02 03:23:38 EDT
I searched variations for timestamp, and found api.eglx_lang.EDateXXX, api.eglx_lang.ETimestampXXX contain test cases which have something to do with timestamp format. But Rocky focus on the syslib.writeStdout() function.
Jing, could you please give some comments on this?
Comment 3 fahua jin CLA 2011-11-02 03:34:24 EDT
(In reply to comment #2)
> I searched variations for timestamp, and found api.eglx_lang.EDateXXX,
> api.eglx_lang.ETimestampXXX contain test cases which have something to do with
> timestamp format. But Rocky focus on the syslib.writeStdout() function.
> Jing, could you please give some comments on this?

If you already have the test cases for the timestamp format, I don't think it's necessary to add for the syslib.writeStdout. Thanks.
Comment 4 Jing Qian CLA 2011-11-02 08:58:02 EDT
like pengFei said, this should be covered under the api.eglx_lang EDatexxx and ETimestampxxx

my understanding is Ji Yong has made the fix in javascript gen, these test cases should work in javascript now (maybe in a newer build 201111020901??)

ADL was the one contributed the EDateXXX and ETimestampXXX tests. so add them to the subscribe list, maybe there are other existing defects on this already?
Comment 5 Huang Ji Yong CLA 2011-11-14 01:31:05 EST
Resolved indirectly
Verified by Pengfei
Comment 6 fahua jin CLA 2011-11-16 22:21:30 EST
Verified in 0.7.0.v201111160901.