on 08-06-2007 4:03 PM
Hi Experts,
I got MAM3.0 source code. I have imported this source into my NWDS , in most of the java files the same error is displaying as "Invalid Expression as Statement" for this line...
[code]public Forward onUnitSelected(Forwards forwards)
{
String s;
Context context = getContext();
s = (String)context.getValue("key");
if(s == null)
return handleRuntimeError(forwards, null, "onUnitSelected", PropertyMgr.getText("GENERIC_ERR_RUNTIME_ERROR"), new Exception("key value not set in context"));
Forward forward;
getCstmCustomController().setSelectedUnit(s);
forward = custom.getMeasUnitListCaller();
if(forward == null)
return handleApplicationError(forwards, null, "onUnitSelected", PropertyMgr.getText("GENERIC_ACTION_NOT_ALLOWED"));
getCstmCustomController().setMeasUnitListCaller(null);
getCstmCustomController().setDimid(null);
clearPicker();
return forward;
BOException boexception;
<b><i>boexception;</i></b>----
<u>Error from here</u>
return handleRuntimeError(forwards, null, "onUnitSelected", PropertyMgr.getText("GENERIC_ERR_RUNTIME_ERROR"), boexception);
}[/code]
[code]static Class _mthclass$(String s)
{
return Class.forName(s);
ClassNotFoundException classnotfoundexception;
<b><i> classnotfoundexception;</i></b> -
</b><u>Error from here</u>
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}[/code]
most of the clasees same type of error is showing...
I am using JDK1.3.
Can any body please tell me ,any particular package i am missing to add.
Thanks in advance,
Murthy
hi nara,
having a statement right after the last return statement would be invalid.
the scope of the function will end at the time the return is invoked; thus
having a declaration after that line will be invalid. the same thing on your
Class _mthclass...
-
return forward;
BOException boexception;
-
from the context, i think you should have the try/catch scope. i.e.
try{
....
return forward;
}catch(BOException boexception){
return handleRuntimeError(forwards, null, "onUnitSelected", PropertyMgr.getText("GENERIC_ERR_RUNTIME_ERROR"), boexception);
}
regards
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.