Bug 200503

Summary: [generate delegate] method generation of static methods
Product: [Eclipse Project] JDT Reporter: Jan Matèrne <jan.materne>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: martinae
Version: 3.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jan Matèrne CLA 2007-08-20 03:09:29 EDT
When using a class you could generate delegating methods, e.g.

import com.sun.tools.doclets.formats.html.HtmlDoclet;
public class FallbackDoclet {
    private HtmlDoclet htmlDoclet = new HtmlDoclet(); 
}

you could generate the public non-static methods of HtmlDoclet configuration(), equals(), hashCode(), start(...) and toString().

It would be useful to generate also the static delegates, e.g.

    public static LanguageVersion languageVersion() {
        return HtmlDoclet.languageVersion();
    }


I think Bug 144259 is on the same field.
Comment 1 Martin Aeschlimann CLA 2007-08-20 05:49:37 EDT
The request is just about the static methods, right? Creating normal delegate methods is already possible.

I mark it as dup of bug 144259 and add a comment there as well.

*** This bug has been marked as a duplicate of bug 144259 ***
Comment 2 Jan Matèrne CLA 2007-08-20 06:03:17 EDT
Yes, only the static methods are "additional" required.

I havent thought that this would be a duplicate of 144259, but with your comment "also wants" this is ok with me.