Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Default java methods?

Discussion in '2018.2 Beta' started by liortal, Jun 3, 2018.

  1. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    In the 2018.2 beta release notes this is mentioned:
    (source: https://unity3d.com/unity/beta-download)

    Can someone elaborate on what this actually means ?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,736
    This is about calling Java code from C# on Android. Java 8 has a feature called "default methods", which allows you to implement methods in interfaces, so that classes implementing that interface are not required to provide implementation for those methods.
    Read more here: https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html
     
    codestage, Peter77 and liortal like this.