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

Bug 343275

Summary: "deserialization of type org.eclipse.core.resources.IProject is not implemented"
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: TechnologiesAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: fabien.giquel, hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: nicolas.bros: indigo+
Target Milestone: 0.9.0 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nicolas Bros CLA 2011-04-19 10:45:20 EDT
I get this error each time the Java discoverer parameters dialog is opened:
"deserialization of type org.eclipse.core.resources.IProject is not implemented".
Comment 1 Nicolas Bros CLA 2011-04-20 03:04:22 EDT
Also, there is a warning:
Plugin org.eclipse.modisco.java.discoverer.org.eclipse.emf.facet.util.emf.core.serialization: Several serializers are provided for the type: org.eclipse.core.resources.IProject. Only the first one will be used. (org.eclipse.emf.facet.infra.common.core_0.1.0.qualifier)

The IProject serializer "org.eclipse.modisco.java.discoverer.internal.serialization.ProjectSerializer" seems useless since there is a IResource serializer ("org.eclipse.emf.facet.util.emf.core.internal.serialization.serializers.IResourceSerializer") which the EMF Facet serialization mechanism always chooses instead, since it is more general.
Comment 2 Fabien Giquel CLA 2011-04-21 02:52:14 EDT
I have one error "Several serializers are provided for the type..." but i not encounter some "deserialization of type IProject is not
implemented".

I agree with removal of useless serialization implemented in MoDisco.
Comment 3 Nicolas Bros CLA 2011-04-21 05:50:33 EDT
(In reply to comment #2)
> I have one error "Several serializers are provided for the type..." but i not
> encounter some "deserialization of type IProject is not
> implemented".

Yes, I don't understand exactly how that could happen in my workspace. This error would be possible if I had serialized when the "IProject" serializer was present but not the "IResource" serializer. And then when the "IResource" serializer was added, it took the priority over the "IProjet" serializer.

Or maybe my launchers were serialized before I finished the current implementation.

> I agree with removal of useless serialization implemented in MoDisco.
Removed in revision 4347.
Comment 4 Hugo Bruneliere CLA 2011-08-18 08:12:29 EDT
Bug solved.