Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#782 closed task (fixed)

Fix compilation error when compiling against BASE 3.6

Reported by: nicklas Owned by: nicklas
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 Changed 3 years ago by nicklas

  • Milestone changed from Reggie v3.x to Reggie v3.8

comment:2 Changed 3 years ago by nicklas

  • Status changed from new to assigned

comment:3 Changed 3 years ago by nicklas

  • Resolution set to fixed
  • Status changed from assigned to closed

(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 Changed 3 years ago by nicklas

  • Milestone changed from Reggie v3.8 to Reggie v4.0

Milestone renamed

Note: See TracTickets for help on using tickets.