Opened 6 years ago

Last modified 4 years ago

#55530 closed defect

junit @4.6: error: Source option 1.5 is no longer supported. Use 1.6 or later. — at Version 1

Reported by: filipnelis Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: junit

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When performing the following installation: sudo port install subversion-javahlbindings +no_bdb +universal I get the following error:

Error: Failed to build junit: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_java_junit/junit/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port subversion-javahlbindings failed

Change History (2)

Changed 6 years ago by filipnelis

Attachment: main.log added

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: junit added
Summary: Installation subversion-javahlbindings failedjunit @4.6: error: Source option 1.5 is no longer supported. Use 1.6 or later.

The log says:

:info:build     [javac]           WARNING
:info:build     [javac]
:info:build     [javac] The -source switch defaults to 9 in JDK 9.
:info:build     [javac] If you specify -target 1.5 you now must also specify -source 1.5.
:info:build     [javac] Ant will implicitly add -source 1.5 for you.  Please change your build file.
:info:build     [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
:info:build     [javac] error: Source option 1.5 is no longer supported. Use 1.6 or later.
:info:build     [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

The junit port is very old and may just need to be updated. I tried to do that years ago and failed; see #27086. Maybe the situation has improved since then.

Note: See TracTickets for help on using tickets.