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.
serialVersionUID should not be invoked in cc - regression caused by fix of issue 131901
Confirmed. Unfortunately it won't be easy to fix. I suppose I could use @SuppressWarnings("serial") instead of defining a field in the simplified servlet class if the project source level is Java 5+, but it seems too much of a hack. Maybe the new Parsing API could help if it provides a way to filter things from the embedded language out, but I doubt it. On the other hand I think the user impact of this issue is more like a P4....
the mergedScriptlets() method is another item that should be not shown by code completion
*** Issue 138823 has been marked as a duplicate of this issue. ***
Java CC and probably other editing features should check the real offset of the elements defined in a virtual class and (usually) ignore them if the real offset is -1. Reassigning to Dusan
*** Issue 145370 has been marked as a duplicate of this issue. ***
Re. "this issue is more like a P4" - I was actually thinking about opposite: from architecture point of view this is P2. Code completion should never show a rubbish and whatever API you are using should allow you to achieve that without hacking things around. IMO.
Re. "Java CC and probably other editing features should check the real offset of the elements defined in a virtual class and (usually) ignore them if the real offset is -1". I'm afraid that this approach wouldn't work - simply there are many other items (application, config, request, response, etc.) with real offset -1 which SHOULD be offered by the code completion. I just wonder why the generated virtual class contains elements (serialVersionUID, mergedScriptlets()) that cannot be used form within JSP Java scriplets. Reassigning back to JSP editor.
*** Issue 120580 has been marked as a duplicate of this issue. ***
Dusan, serialVersionUID has to be there otherwise (issue 131901) you get "serializable class SimplifiedJSPServlet has no definition of serialVersionUID" warning. "mergedScriptlets" artificial method could be rewritten as static block. But that still does not solve serialVersionUID problem. Any suggestions?
Dusan, could you please look at this issue? Thanks.
This one needs to be resolved by Dusan as well.
Dusane, any progress?
Dusane, can you please take a look the issue?
A possibility could be to use the Whitelist Support API recently created by Tomas Zezula.
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.