Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322043 - [SSE] Incorrect parsing of function declarations
Summary: [SSE] Incorrect parsing of function declarations
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WTP Incubator (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 critical (vote)
Target Milestone: ---   Edit
Assignee: Lionel Villard CLA
QA Contact: Gabriel Petrovay CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-07 03:03 EDT by Gabriel Petrovay CLA
Modified: 2021-11-18 16: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 Gabriel Petrovay CLA 2010-08-07 03:03:31 EDT
A syntax error is reported if the following function declaration is used in a main module of a library module:

declare function local:foo () {
	1
};
Comment 1 Lionel Villard CLA 2010-08-09 09:31:26 EDT
Fixed. The closing ')' was not properly consumed.
Comment 2 Gabriel Petrovay CLA 2010-08-10 11:49:09 EDT
DO NOT SOLVE THIS BUG BEFORE Bug 322045 such that you can reproduce the problem there

Now probably consumming the wrong ')':

declare function local:foo ($s as item()) {
	1
};

-----------------------------------------

And there might also be a case with ")))" at the end of the function declaration when DocumentTest is used.
Comment 3 Lionel Villard CLA 2010-08-12 16:11:43 EDT
I can't reproduce it. Might have been fixed while fixing another bug.
Comment 4 Gabriel Petrovay CLA 2010-08-25 12:49:29 EDT
Makes it to the 0.8M1 release.