question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 9 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tombentleycommented, Mar 15, 2016

Following #507 this should now be tractable.

0reactions
quintessecommented, Aug 15, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found