Java 8: support implementing a Java 8 interface which has default methods
See original GitHub issue[@FroMage] In theory what we need is to:
- mark it as
default
in the Ceylon model, - not emit any bridge method for it since the JVM will provide it at runtime,
- make javac not barf if it’s missing, and
- support calling it from subclasses (may be trickier to emit the right code in javac)
Marking as 1.1 for now but not sure if we have time for it and if it’s urgent enough.
[Migrated from ceylon/ceylon-compiler#1616]
Issue Analytics
- State:
- Created 9 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Default Methods In Java 8 - GeeksforGeeks
Interfaces can have default methods with implementation in Java 8 on later. Interfaces can have static methods as well, similar to static ...
Read more >Java 8 - Default Methods - Tutorialspoint
Java 8 introduces a new concept of default method implementation in interfaces. This capability is added for backward compatibility so that old interfaces...
Read more >Static and Default Methods in Interfaces in Java - Baeldung
The most common use of interface default methods is to incrementally provide additional functionality to a given type without breaking down the ...
Read more >Interface Default Methods in Java 8 - DZone
Java 8 introduces the “Default Method” or (Defender methods) feature, which allows the developer to add new methods to the interfaces ...
Read more >Java 8 Interface Changes - static method, default method
One of the major reason for introducing default methods in interfaces is to enhance the Collections API in Java 8 to support lambda ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Following #507 this should now be tractable.
I moved this to 1.2.3 so it will show up as closed within the 1.2.3 timeframe, but if this is not / won’t be merged for 1.2.3 we have to move it back to 1.3