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.

Bug 195869 - Action wizard generates uncompilable code for Maven NBM project
Summary: Action wizard generates uncompilable code for Maven NBM project
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 14:42 UTC by Tomas Danek
Modified: 2011-03-01 15:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2011-02-23 14:42:02 UTC
20110223, JDK7ea, Windows 7
-------------
- create Maven NBM project (use Release70-beta)
- create new action, always enabled

there is an uncompilable code in action class on line with import:

import o.o.util.NbBundle.Messages (cannot find symbol Messages)

and following annotations:
@ActionID (complaining about missing key in bundle which is i guess consequent of previous)
@Messages (cannot find symbol Messages)

o.o.util-RELEASE70-BETA.jar is correctly listed as dependency
Comment 1 Tomas Danek 2011-02-23 14:44:03 UTC
Generated code:

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.mnbm;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openide.awt.ActionRegistration;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionID;
import org.openide.util.NbBundle.Messages;

@ActionID(category = "Build",
id = "com.mycompany.mnbm.SomeAction")
@ActionRegistration(displayName = "#CTL_SomeAction")
@ActionReferences({
    @ActionReference(path = "Menu/File", position = 0, separatorBefore = -50, separatorAfter = 50)
})
@Messages("CTL_SomeAction=AAAA")
public final class SomeAction implements ActionListener {

    public void actionPerformed(ActionEvent e) {
        // TODO implement action body
    }
}
Comment 2 Jesse Glick 2011-02-28 15:08:13 UTC
This was already fixed in 828a840205ce. For RELEASE70-BETA no annotations are used; for -BETA2 they will be.
Comment 3 Tomas Danek 2011-03-01 10:26:11 UTC
thanks, it seems to work as you said in #20110228. 
Anyway, index from netbeans repo still does not contain "release70-beta2".  Who is maintaining netbeans maven repo? you, or Petr G.?
Comment 4 Jesse Glick 2011-03-01 15:28:27 UTC
(In reply to comment #3)
> index from netbeans repo still does not contain "release70-beta2"

Awaiting fixes of blocking issues, filed in the appropriate component.