| Summary: | NoSuchMethodException when ProgressMonitor does not implement init(String[]) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMFT | Reporter: | Karsten Thoms <karsten.thoms> | ||||
| Component: | MWE | Assignee: | 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: |
|
||||||
moved to MWE Added ProgressMonitor2 interface Changed WorkflowRunner |
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.