BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Java 8 Starting to Find Its Way into .Net/Mono

Java 8 Starting to Find Its Way into .Net/Mono

This item in japanese

Bookmarks

In last week’s development snapshot, IKVM added experimental support for static methods in interfaces and default interfaces methods. These Java 8 features are primarily to support the internal workings of Java libraries. Jeroen Frijters isn’t expecting to have a good interopt story when it comes to mixing these features with other .NET languages.

Static methods in interfaces are just what they sound like, fully implemented static methods stored within an interface’s namespace instead of a class. They were proposed as part of Project Coin.

Default interfaces methods allow Java developers to treat abstract interfaces as if they were abstract base classes. The default methods are overridable like other interface methods, but can be added without a causing breaking change to the interface. Unlike extension methods, which are a purely language concept, default interface methods require runtime support.

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

  • IKVM rocks!

    by peter lin,

    • Re: IKVM rocks!

      by Mac Noodle,

      • IKVM rocks!

        by peter lin,

        Your message is awaiting moderation. Thank you for participating in the discussion.

        I've been using it for over 6 years now and it's been a god send in the past.

      • Methods on interfaces

        by Reg Whitton,

        Your message is awaiting moderation. Thank you for participating in the discussion.

        Default interfaces methods allow Java developers to treat abstract interfaces as if they were abstract base classes.


        Oh crap.

      • Re: IKVM rocks!

        by Mac Noodle,

        Your message is awaiting moderation. Thank you for participating in the discussion.

        Peter - "it"?

      • Re: IKVM rocks!

        by peter lin,

        Your message is awaiting moderation. Thank you for participating in the discussion.

        it meaning IKVM. I've used it to use java's concurrent collections before .Net released 4.0. I've also used it to run various Java stuff in .Net.

      • Re: IKVM rocks!

        by Faisal Waris,

        Your message is awaiting moderation. Thank you for participating in the discussion.

        indeed IKVM is very impressive even mind blowing that you can take very complex java code and run it as-is in .Net. A few years ago I used the Stanford NLP parser, which is written in Java, as part of .Net code, without issue.

      • Re: IKVM rocks!

        by Mac Noodle,

        Your message is awaiting moderation. Thank you for participating in the discussion.

        Thx. Cool. Just wanted to make sure. :)

      • Re: IKVM rocks!

        by peter lin,

        Your message is awaiting moderation. Thank you for participating in the discussion.

        I've even used IKVM to port Hector to .Net. Most of the .Net cassandra drivers aren't mature, so IKVM came to the rescue! You can run some very complex Java applications in IKVM.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT