Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322043

Summary: [SSE] Incorrect parsing of function declarations
Product: z_Archived Reporter: Gabriel Petrovay <gabipetrovay>
Component: WTP IncubatorAssignee: Lionel Villard <villard>
Status: CLOSED FIXED QA Contact: Gabriel Petrovay <gabipetrovay>
Severity: critical    
Priority: P1 CC: villard
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.