Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 406245 - [1.8][compiler] Interface methods can have more modifiers now
Summary: [1.8][compiler] Interface methods can have more modifiers now
Status: RESOLVED DUPLICATE of bug 400977
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: BETA J8   Edit
Assignee: Manoj N Palat CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-22 14:43 EDT by Markus Keller CLA
Modified: 2013-04-22 23:01 EDT (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 Markus Keller CLA 2013-04-22 14:43:24 EDT
BETA_JAVA8

interface I {
	default strictfp int getInt() {
		return 42;
	}
	static void soo() { }
	native void noo();
}


"noo()" has error: "Illegal modifier for the interface method noo; only public & abstract are permitted"

=> should be: "...; only public, abstract, default, static & strictfp are permitted"

Note that there are other omissions along the lines of bug 383970. E.g. member classes and interfaces can also be strictfp.
Comment 1 Markus Keller CLA 2013-04-22 14:45:51 EDT
Manoj, please make a pass over all messages that contain "only" and add the missing modifiers. Ensure they all use the order given in bug 217966 comment 2.
Comment 2 Srikanth Sankaran CLA 2013-04-22 23:01:33 EDT
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=400977

*** This bug has been marked as a duplicate of bug 400977 ***