Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359833 - Part validation failure NPE using field function parameter modifier
Summary: Part validation failure NPE using field function parameter modifier
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 09:12 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-10-04 09:12:00 EDT
library Simple
	
	// Function Declarations
	function caller()
	end
	
	function calledFuntion(param1 any field inout)
	end
end

results in 

java.lang.NullPointerException
at org.eclipse.edt.compiler.internal.core.validation.part.FunctionValidator.checkInputOrOutputParm(FunctionValidator.java:480)
at org.eclipse.edt.compiler.internal.core.validation.part.FunctionValidator.checkInputParm(FunctionValidator.java:485)
at org.eclipse.edt.compiler.internal.core.validation.part.FunctionValidator.visit(FunctionValidator.java:260)
at org.eclipse.edt.compiler.core.ast.FunctionParameter.accept(FunctionParameter.java:102)
at org.eclipse.edt.compiler.core.ast.Node.acceptChildren(Node.java:83)
at org.eclipse.edt.compiler.core.ast.NestedFunction.accept(NestedFunction.java:92)
at org.eclipse.edt.compiler.internal.core.validation.part.FunctionContainerValidator.visit(FunctionContainerValidator.java:50)
at org.eclipse.edt.compiler.internal.core.validation.part.LibraryValidator.visit(LibraryValidator.java:76)
at org.eclipse.edt.compiler.core.ast.NestedFunction.accept(NestedFunction.java:89)
at org.eclipse.edt.compiler.core.ast.Node.acceptChildren(Node.java:83)
at org.eclipse.edt.compiler.core.ast.Library.accept(Library.java:53)
at org.eclipse.edt.compiler.internal.core.builder.Compiler.compilePart(Compiler.java:312)
at org.eclipse.edt.ide.core.internal.compiler.workingcopy.WorkingCopyProcessingQueue.level03Compile(WorkingCopyProcessingQueue.java:160)
at org.eclipse.edt.compiler.internal.core.builder.AbstractProcessingQueue.process(AbstractProcessingQueue.java:169)
at org.eclipse.edt.compiler.internal.core.builder.AbstractProcessingQueue.process(AbstractProcessingQueue.java:152)
at org.eclipse.edt.ide.core.internal.compiler.workingcopy.WorkingCopyCompiler.compileAllParts(WorkingCopyCompiler.java:221)
at org.eclipse.edt.ide.ui.internal.editor.ProblemReconciler$EGLReconcilingStrategy.reconcile(ProblemReconciler.java:304)
at org.eclipse.edt.ide.ui.internal.editor.ProblemReconciler$BackgroundThread.run(ProblemReconciler.java:126)


RBD gives this message
IWN.VAL.5604.e 11/25 The parameter param1 for Function calledFuntion in Part Simple has an unsupported modifier - field.
Comment 1 Paul Harmon CLA 2011-11-01 12:16:06 EDT
I cannot recreate this, I am assuming it got fixed along the way.

If you can recreate the problem, reopen the bug.
Comment 2 Kathy Carroll CLA 2011-11-02 15:05:24 EDT
verified and closed 201111020901