Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#782 closed task (fixed)

Fix compilation error when compiling against BASE 3.6

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: critical Milestone: Reggie v4.0
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

When compiling Reggie against the BASE 3.6 JAR files we get 2 errors and 7 warnings (see below). The errors are due to changes in http://base.thep.lu.se/changeset/6874 and should be easy to fix.

    [javac] Compiling 141 source files to D:\Eclipse\Workspace\reggie-test\build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\autoconfirm\AutoConfirmer.java:19: error: type CommonItem does not take parameters
    [javac] public abstract class AutoConfirmer<I extends CommonItem<?>>
    [javac]                                                         ^
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\servlet\InstallServlet.java:1063: error: type BasicItem does not take parameters
    [javac] 	public <T extends BasicItem<?> & Nameable> T createReggieRole(SessionControl sc, ReggieRole<T> role)
    [javac] 	                           ^
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\autoconfirm\AutoConfirmService.java:157: warning: [unchecked] unchecked method invocation: method restart in class Services is applied to given types
    [javac] 		if (ext != null) Services.restart(ext);
    [javac] 		                                 ^
    [javac]   required: Extension<ServiceControllerAction>
    [javac]   found: Extension
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\autoconfirm\AutoConfirmService.java:157: warning: [unchecked] unchecked conversion
    [javac] 		if (ext != null) Services.restart(ext);
    [javac] 		                                  ^
    [javac]   required: Extension<ServiceControllerAction>
    [javac]   found:    Extension
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\counter\CounterService.java:169: warning: [unchecked] unchecked method invocation: method restart in class Services is applied to given types
    [javac] 		if (ext != null) Services.restart(ext);
    [javac] 		                                 ^
    [javac]   required: Extension<ServiceControllerAction>
    [javac]   found: Extension
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\counter\CounterService.java:169: warning: [unchecked] unchecked conversion
    [javac] 		if (ext != null) Services.restart(ext);
    [javac] 		                                  ^
    [javac]   required: Extension<ServiceControllerAction>
    [javac]   found:    Extension
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\grid\OpenGridService.java:135: warning: [unchecked] unchecked method invocation: method restart in class Services is applied to given types
    [javac] 		Services.restart(ext);
    [javac] 		                ^
    [javac]   required: Extension<ServiceControllerAction>
    [javac]   found: Extension
    [javac] D:\Eclipse\Workspace\reggie-test\src\net\sf\basedb\reggie\grid\OpenGridService.java:135: warning: [unchecked] unchecked conversion
    [javac] 		Services.restart(ext);
    [javac] 		                 ^
    [javac]   required: Extension<ServiceControllerAction>
    [javac]   found:    Extension
    [javac] 2 errors
    [javac] 7 warnings

Change History (4)

comment:1 by Nicklas Nordborg, 9 years ago

Milestone: Reggie v3.xReggie v3.8

comment:2 by Nicklas Nordborg, 9 years ago

Status: newassigned

comment:3 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [3571]) Fixes #782: Fix compilation error when compiling against BASE 3.6

Fixed the compilation error and warning as well as some javadoc problems.

comment:4 by Nicklas Nordborg, 9 years ago

Milestone: Reggie v3.8Reggie v4.0

Milestone renamed

Note: See TracTickets for help on using tickets.