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.
The following code generates an incorrect yellow-box warning 'Property uses generated ID, but its type is not an integral type.' in some class files, but is accepted in others, seemingly at random. > private Long mId; > > @Id > @Column(name="id") > @SequenceGenerator(name="AddressSeqGen", sequenceName="seq_Address_id") > @GeneratedValue(strategy=GenerationType.SEQUENCE) > public Long getId() { > return mId; > }
Can you please attach complete class examples? It it always reproducible or appears randomly for the same class?
The problem is random, and can be cleared by restarting NetBeans. Note that this isn't just a warning taking a long time to go away. It was never correct and the accessor / property were always of an integral (Long) type. I can't reliably reproduce, but will attach an example if / when I can.
Have you reproduced it in more than one NB session? A log file would be very helpful. I'm sorry to bother you with so many questions, but the code for this check is pretty straightforward and I'm not able to reproduce this issue even a "theoretic way". It could have been caused by a failure in some lower level framework.
Created attachment 32452 [details] Java class which produces this problem...
Created attachment 32453 [details] Netbeans log for session
This problem appeared seemingly at 'random' again in a new NetBeans session. Attached are class file and log file. Hope this helps.
The problem is caused by severe inconsistencies in JMI, the type "java.lang.Long" could not be resolved. There is a lot of JMI informational exceptions in the log file, reassigning for evaluation. mcm: try cleaning your NB's user directory
Javacore module was replaced by Retouche infrastructure. This bug is not valid in trunk any more.
Reorganization of java component