How set java source?

OpenFL 3, haxe 3.2, hypsystem

[javac]                     catch (InterruptedException | ExecutionException | TimeoutException exception)
[javac]                                                 ^
[javac]   (use -source 7 or higher to enable multi-catch statement)

How I can set java source version?

Are you compiling Haxe sources to Java? Or are you compiling an Android project, with multiple versions of Java installed?

No, i’m just trying use inside empty openfl android project.
That extension has java code:

I have this problem with facebook too.

        [javac] C:\lab\TestExtensions\bin\android\bin\deps\facebook\src\com\facebook\share\widget\ error: diamond operator
    is not supported in -source 1.5
        [javac]         ArrayList<ModeHandler> handlers = new ArrayList<>();
        [javac]                                                         ^
        [javac]   (use -source 7 or higher to enable diamond operator)
        [javac] 26 errors

Possible solution (however I haven’t tried):

  1. Add <template path="templates" /> into project.xml
  2. Create following folders structure templates/android/template
  3. Create file inside templates/android/template with following content:

Result folders structure:

|- assets
|- source
|- project.xml
|- templates
   |- android
      |- template

It’s work!
But i’m added


in extension/dependencies/android/


Sounds like a good pull request for the original project :slight_smile: