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 212167 - Local Stateless EJB and JPA are note required to be Serializable
Summary: Local Stateless EJB and JPA are note required to be Serializable
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 7.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-07 21:20 UTC by arungupta
Modified: 2016-07-07 08:56 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arungupta 2012-05-07 21:20:15 UTC
For a local stateless EJB, "implements Serializable" should not be shown as hint.

Similarly, if a JPA entity is used only by a local EJB then it should not require "implements Serializable" as well.
Comment 1 Sergey Petrov 2012-05-08 18:32:22 UTC
It should be hard to determine if jpa is used locally only, I'm not sure it's possible in general.
Comment 2 Martin Fousek 2012-05-09 07:47:09 UTC
Sorry for the question but which local stateless bean hint do you have in mind? I'm not afraid of any of them (except the JPA one). Could you provide i.e. screenshot, please?
Comment 3 David Konecny 2012-05-09 17:25:23 UTC
Generally speaking, we show hints to help users to improve their code or catch problems early. If in some cases a hint does not apply then we should rather remove it then confuse users with hints which do not make sense. So in this case I would think that hint to "implements Serializable" should be shown only on classes which we know are going to be serialized in runtime. So the question is not "is JPA used only locally" but "is JPA used in some context where serialization is required". And that should be doable, no? What do you think? And if we do not know it we will not show any hint.
Comment 4 Martin Balin 2016-07-07 08:56:23 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss