Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-549

Syntax for lambda expressions is not well supported

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.1.5
    • Component/s: Compiler

      Description

      When compiling the following sentence:

      #!div style="font-size: 90%"
        {{{#!python
        BiFunction addition = ( x, y ) -> x + y;
        }}}
      

      the following error is raised:

      bad operand types for binary operator '+'
        first type: java.lang.Object;  second type: java.lang.Object
      

      Used version: 3.1.4 (Java version 1.8.0_25)

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              external External via trac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: