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: cb89c806c8 [formerly 08ee82c39a] [formerly b535c90a23 [formerly 5c5eb6f348627f65afc527205c5bc1f7b7463ddb]]
Former-commit-id: b535c90a23
Former-commit-id: e54ab69bf7
This commit is contained in:
Brad Gonzales 2014-03-06 09:46:59 -06:00
parent 0a088273aa
commit 48b19f3833
2 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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: "