Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352075

Summary: String array initially gets IWN.VAL.9001 for mof.egl.ArrayType not found
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jspadea, pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-07-14 08:57:09 EDT
Build Identifier: 0.7.0

When I first save my file, I get the message below.  When I modify the
string literals in my file, the VAL error goes away and java code gets 
generated.

Description    IWN.VAL.9001.e 0/0 Generation of arrayLibrary was terminated
because the part org.eclipse.edt.mof.serialization.DeserializationException:
java.lang.RuntimeException:
org.eclipse.edt.mof.serialization.TypeNotFoundException:
org.eclipse.edt.mof.serialization.MofObjectNotFoundException: MofObject not
found: org.eclipse.edt.mof.egl.ArrayType could not be found.
Resource    arrayLibrary.egl    
Path        /Mine/eglsource/explore
Location    line 0
Type        EDT Generation Problem

Reproducible: Always

Steps to Reproduce:
Steps to Reproduce:
1.  Create an EGL project
2.  Create an EGL source file.  Package explore filename arrayLibrary
3.  Copy this into your source file

================================================================
package explore;
// basic library
library arrayLibrary type BasicLibrary {}
    const STEXTS String[] = ["Passed.", "Failed." ];
end
=================================================================
4. Save the file ... you'll see the generation termination problem
5. Modify/save the sring literals and the genVAL.9001 error goes away.
Comment 1 Justin Spadea CLA 2011-07-15 11:24:05 EDT
Fixed GenerationQueue.java - when looking up the IR to generate we might be deserializing it (if it's not cached). Added code to push/pop the current IR environment so that deserialization can find the IRs it might need (in this case, the IR for ArrayType).
Comment 2 Kathy Carroll CLA 2011-08-15 14:24:54 EDT
verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:21:24 EDT
Closing this defect.