Uploaded image for project: 'Polygene'
  1. Polygene
  2. POLYGENE-251

Support Java 8 default methods on interfaces

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Labels:
      None

      Description

      The following composite declaration:

      public interface DefaultMethods
      {
          default String sayHello( String name )
          {
              return "Hello, " + name + '!';
          }
      }
      

      fails at assembly with:

      Composition Problems Report:
          message: No implementation found for method 
          method: String sayHello(String name)
      

      See InterfaceDefaultMethodsTest in core/runtime

      Also see POLYGENE-120 for some preliminary investigation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                niclas Niclas Hedhman
                Reporter:
                eskatos Paul Merlin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: