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

Bug 369902

Summary: NoSuchMethodException when ProgressMonitor does not implement init(String[])
Product: [Modeling] EMFT Reporter: Karsten Thoms <karsten.thoms>
Component: MWEAssignee: Karsten Thoms <karsten.thoms>
Status: RESOLVED FIXED QA Contact:
Severity: trivial    
Priority: P3    
Version: 1.1   
Target Milestone: M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Sample Project none

Description Karsten Thoms CLA 2012-01-27 03:50:09 EST
Created attachment 210169 [details]
Sample Project

If a custom implementation of ProgressMonitor is passed, the class is searched for a method
   void init (String[])
When the method does not exist the code should safely skip invocation, but actually the code raises a NoSuchMethodException.

1    ERROR WorkflowRunner     - metamodel.MyProgressMonitor.init([Ljava.lang.String;)
java.lang.NoSuchMethodException: metamodel.MyProgressMonitor.init([Ljava.lang.String;)
	at java.lang.Class.getMethod(Class.java:1605)
	at org.eclipse.emf.mwe.core.WorkflowRunner.main(WorkflowRunner.java:205)


Actually there should be an interface ProgressMonitor2 which adds this method.
Comment 1 Karsten Thoms CLA 2012-01-27 03:51:50 EST
moved to MWE
Comment 2 Karsten Thoms CLA 2012-01-27 03:58:58 EST
Added ProgressMonitor2 interface
Changed WorkflowRunner