Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1635 closed task (fixed)

Test BASE with Java 7

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 3.0
Component: core Version:
Keywords: Cc:

Description

It has been a couple of months since Java 7 was released. I think we should test if BASE works and if not, see if we can fix any problems.

Change History (5)

comment:1 Changed 10 years ago by Nicklas Nordborg

Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

comment:2 Changed 10 years ago by Nicklas Nordborg

Compiling with 1.7 generates a warning:

core.compile:
    [mkdir] Created dir: /home/jersild/nicklas/projects/eclipse/trunk/build/core
    [javac] Compiling 1067 source files to /home/jersild/nicklas/projects/eclipse/trunk/build/core
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] 1 warning

This is because the compiler can't really check if we are using any 1.7-only features unless we specify the path to a 1.6 class library.

Installation and TestAll complete without any errors. Tomcat can be started and seems to working as expected. This is with BASE compiled against Java 1.7.

comment:3 Changed 10 years ago by Nicklas Nordborg

Using BASE compiled with Java 1.6 seems to be working fine with Java 1.7. I have tested installation, TestAll and that Tomcat can be started and that it is possible to login and the CompileAll servlet.

comment:4 Changed 10 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

(In [5838]) Fixes #1635: Test BASE with Java 7

BASE itself seems to be working just fine. Compilation with Java 7 needs to set the 'javac.bootclasspath' to point to a JRE 6 installation. The recommended approach is to create build.properties and set the value in that file. Eg.

javac.bootclasspath /path/to/jdk-6/jre

comment:5 Changed 10 years ago by Nicklas Nordborg

Milestone: BASE 3.1BASE 3.0
Note: See TracTickets for help on using tickets.