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.
If I have a non public top-level class defined in a class file and I annotate this class with @Embeddable or @Entity the IDE tells me that it is incorrect. I can't find any reference in the JPA 2.0 specification about that it must be public and I tested it with Eclipselink and worked fine so far.
I can't find this requirement too.
fix 9f1311910b91. will remove this error hint. on other side I see no code samples with not public classes neither in specification nor with quick internet search.
Yes, I can't see yet a useful scenario but since it is not mandatory by the spec it is worth to fix it. For the record, I was just doing some experimentation with some domain models and I haven't removed some annotations from classes I have pasted and it was when I saw the issue for the first time.
Integrated into 'main-silver', will be available in build *201307032300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9f1311910b91 User: Sergey B. Petrov <sj-nb@netbeans.org> Log: #232208 remove error hint from entity/embeddable/mappedsuprclass