Bug 200503 - [generate delegate] method generation of static methods
Summary: [generate delegate] method generation of static methods
Status: RESOLVED DUPLICATE of bug 144259
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-20 03:09 EDT by Jan Matèrne CLA
Modified: 2007-08-20 06:03 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.