B4J Question in-line code options

Discussion in 'B4J Questions' started by Daestrum, Feb 5, 2015.

  1. Daestrum

    Daestrum Well-Known Member Licensed User

    Is there a way to specify which version of Java source I am using?

    I am currently getting error messages complaining about using diamond operators and try-catch blocks in the in-line code.
    The error suggests I add the option "-source 7" but where can I add this ?

    The error :-

    javac 1.8.0_25
    src\b4j\example\main.java:101: error: diamond operator is not supported in -source 1.5
    private static List<String> foundIn = new LinkedList<>();
    ^
    (use -source 7 or higher to enable diamond operator)
    1 error
     
    Last edited: Feb 5, 2015
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is currently not possible to change it.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice