[api-changes] [Bug 207219] @DataObject.Registration

  • From:
  • To:
  • Subject: [api-changes] [Bug 207219] @DataObject.Registration
  • Date: Tue, 31 Jan 2012 17:04:05 +0000
  • Auto-submitted: auto-generated

http://netbeans.org/bugzilla/show_bug.cgi?id=207219

Jesse Glick 
< >
 changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|DataLoader Registration     |@DataObject.Registration
                   |using annotation annotation |
                   |proposal                    |

--- Comment #15 from Jesse Glick 
< >
 2012-01-31 17:04:05 UTC ---
[JG11] This code

@TemplateRegistration(folder="Other", content="${PREFIX}${TEMPLATE_NAME}")
public static WizardDescriptor.InstantiatingIterator templateIterator() {
    return null;
}

cannot be right; you may not return null from a registered factory method (*).
Did you mean to place @TR on package-info.java instead (CMF.packageInfo)?


(*) If JSR 305 were finalized then

@javax.annotation.Nonnull(when=javax.annotation.meta.When.ALWAYS)
@javax.annotation.meta.TypeQualifierNickname
@interface TemplateRegistration {...}

would be useful on annotations registering Java objects, though this would 
also
require @Retention(CLASS) for use from FindBugs.

-- 
Configure bugmail: http://netbeans.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


[api-changes] [Bug 207219] @DataObject.Registration

jglick 01/31/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close