[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [wtp-dev] wtp JS support bugs and problems
|
For the second two....Go to Preferences -> _javascript_ -> Validation -> Errors/Warnings and disable Semantic Validation using the check box at the top of the page.
I don't have a work around for the first problem.
When you say latest WTP which version do you actualy mean?
Please open defects for these three problems here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Source%20Editing
Do so against the wst.jsdt component.
Thank you,
Chris
Przemek Chudzinski <przemek.ch@xxxxxxxxx>
Przemek Chudzinski <przemek.ch@xxxxxxxxx>
Sent by: wtp-dev-bounces@xxxxxxxxxxx
01/14/2010 03:48 AM
Please respond to
"General discussion of project-wide or architectural issues." <wtp-dev@xxxxxxxxxxx> |
|
|
Hi,
I found 3 problems using the latest WTP.
1. This method:
/**
* @param eventObject
* @return
*/
function pe_rtcx_SaveButton(eventObject)
{
switch (approvalPosition)
{
case "0":
functionalstatus.setValue(REQUEST_STATE_ZeroRTCSaved);
break;
case "1":
functionalstatus.setValue(REQUEST_STATE_FirstRTCSaved);
break;
default:
break;
}
if (window.parent.setLocalState)
{
window.parent.setLocalState(STATE_SAVE);
}
else
{
window.parent.application.container.close();
}
}
causes
Description Resource Path Location Type
Internal validation error
java.lang.NullPointerException
at org.eclipse.wst.jsdt.internal.compiler.ast.SwitchStatement.analyseCode(SwitchStatement.java:107)
at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.analyseCode(MethodDeclaration.java:94)
at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.analyseCode(AbstractMethodDeclaration.java:112)
at org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:161)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.process(Compiler.java:598)
at org.eclipse.wst.jsdt.internal.compiler.Compiler.compile(Compiler.java:356)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:311)
at org.eclipse.wst.jsdt.internal.core.builder.IncrementalImageBuilder.compile(IncrementalImageBuilder.java:306)
at org.eclipse.wst.jsdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:248)
at org.eclipse.wst.jsdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:134)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:302)
at org.eclipse.wst.jsdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:214)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
BA_TransactionDetails.js /Siemens CoF/src/web/com/siemens/fs/cof/baap line 0 _javascript_ Problem
if approvalPosition will be declared as global, or if,else will be removed then the error will be gone.
Second thing is:
var Definitions =
{
Literal :
{
YES : "Yes",
NO : "No",
TRUE : "true",
FALSE : "false",
UNDEFINED : "undefined"
}
}
And when I use.
Definitions.Literal.TRUE
I get a warning which cant be suppressed/disabled
Description Resource Path Location Type
The static field ___anonymous23434_23566.TRUE should be accessed in a static way BA_TransactionDetails.js /fs/cof/baap line 278 _javascript_ Problem
And third thing
function BA_RTCX_DoTerminateRequest(iRequestPK, requestID)
{
return function(confirmReturnValue)
{
if ( confirmReturnValue != 1 )
{
return; //hers the error
}
window.parent.application.container.close();
};
}
Description Resource Path Location Type
This function must return a result of type any BA_RtcX.js /fs/cof/baap line 524 _javascript_ Problem
Any ideas how can I set WTP under eclipse to disable those errors.
Regards
Przemek
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev


