This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Generated action annotation not usable (compile time error) | ||
---|---|---|---|
Product: | platform | Reporter: | lanthale |
Component: | Actions | Assignee: | Jan Peska <JPESKA> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | mmirilovic |
Priority: | P1 | Keywords: | PLATFORM |
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
lanthale
2013-10-11 13:24:37 UTC
Which compile error? Do you mean "xxx is not assignable to javax.swing.Action"? Use "public final class ShowAnalyseAction extends AbstractAction implements Presenter.Toolbar" instead of "public final class ShowAnalyseAction implements ActionListener, Presenter.Toolbar" See https://blogs.oracle.com/geertjan/entry/presenter_toolbar_meets_action_annotation That's not even a P1. @Jan: Resolve as invalid? (In reply to markiewb from comment #1) > Which compile error? Do you mean "xxx is not assignable to > javax.swing.Action"? > > Use > "public final class ShowAnalyseAction extends AbstractAction implements > Presenter.Toolbar" > > instead of > > "public final class ShowAnalyseAction implements ActionListener, > Presenter.Toolbar" > > See > https://blogs.oracle.com/geertjan/entry/ > presenter_toolbar_meets_action_annotation > > That's not even a P1. @Jan: Resolve as invalid? I agree, lanthale please try this out and reopen if there is another problem with proposed solution. markiewb, thank you for solving this. PS. if you have a problem to see the blog entry try to google the URL and then open it. |