Bug 4385 - QualifiedAllocationExpression.sourceEnd incorrect if type is an AnonymousLocalTypeDeclaration
Summary: QualifiedAllocationExpression.sourceEnd incorrect if type is an AnonymousLoca...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-11 11:41 EDT by Dirk Baeumer CLA
Modified: 2002-01-11 09:04 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-11 11:41:42 EDT
Consider the following source:

		Protectable p= new Protectable() {
			public void protect() throws Exception {
				setUp();
				basicRun(result);
				tearDown();
			}
		};

SourceEnd of the QualifiedAllocationExpression new Protectable is the e of
Protectable and not the closing } of the type declaration
Comment 1 Olivier Thomann CLA 2001-10-12 11:38:10 EDT
Missing to change the sourceEnd of the QualifiedAllocationExpression in the 
parser when setting the declaration source end of the anonymous type 
declaration.
Fixed into HEAD.
Comment 2 Philipe Mulet CLA 2001-10-15 04:09:49 EDT
Fixed