Issue #2885 Update PDE build to Java 1.7. Fix code that is now an error in Java 1.7.
Amend: changed to use set method. Change-Id: I39cb36937fb9faafe24f2e87a897ae78c7c660e1 Former-commit-id: 5c5eb6f348627f65afc527205c5bc1f7b7463ddb
This commit is contained in:
parent
f60fba58b1
commit
b535c90a23
2 changed files with 4 additions and 3 deletions
|
@ -208,8 +208,8 @@ javacVerbose=true
|
|||
compilerArg=-g:lines,source
|
||||
|
||||
# Default value for the version of the source code. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacSource in build.properties
|
||||
javacSource=1.6
|
||||
javacSource=1.7
|
||||
|
||||
# Default value for the version of the byte code targeted. This value is used when compiling plug-ins that do not set the Bundle-RequiredExecutionEnvironment or set javacTarget in build.properties.
|
||||
javacTarget=1.6
|
||||
javacTarget=1.7
|
||||
generateVersionsLists=true
|
||||
|
|
|
@ -34,6 +34,7 @@ import com.raytheon.uf.common.serialization.comm.IServerRequest;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* May 18, 2010 mschenke Initial creation
|
||||
* Mar 06, 2014 2885 bgonzale Fix code that is now an error in Java 1.7.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -70,7 +71,7 @@ public abstract class AbstractPrivilegedRequest implements IServerRequest {
|
|||
Class<T> clazz, IUser user) throws AuthException {
|
||||
try {
|
||||
T request = clazz.newInstance();
|
||||
request.user = user;
|
||||
request.setUser(user);
|
||||
return request;
|
||||
} catch (Exception e) {
|
||||
throw new AuthException("Error instantiating privileged request: "
|
||||
|
|
Loading…
Add table
Reference in a new issue