Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 401235 - [1.8][compiler] 'this' reference must be allowed in default methods and local classes
Summary: [1.8][compiler] 'this' reference must be allowed in default methods and local...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: BETA J8   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 380501
  Show dependency tree
 
Reported: 2013-02-19 15:19 EST by Stephan Herrmann CLA
Modified: 2013-02-20 03:15 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 Stephan Herrmann CLA 2013-02-19 15:19:52 EST
JSR 335 0.6.1 Part H

"A this expression may appear in a default method body; its type is the type of the enclosing interface. Similarly, an anonymous or local class may be declared in a default method body, so the enclosing instance of an inner class may have an interface type. "

This is actually a NOP, because this is already correctly handled by the compiler.
Still corresponding tests should be added.
Comment 1 Stephan Herrmann CLA 2013-02-20 03:15:27 EST
Released new test via commit 66fe9194782f846d946fc257cc3a475661c8281c.