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 133833 - superfluous CC items in JSP scriptlets
Summary: superfluous CC items in JSP scriptlets
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
: 120580 138823 145370 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-24 13:15 UTC by Jindrich Sedek
Modified: 2015-09-17 13:10 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jindrich Sedek 2008-04-24 13:15:24 UTC
serialVersionUID should not be invoked in cc - regression caused by fix of issue 131901
Comment 1 Tomasz Slota 2008-06-19 09:28:45 UTC
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....
Comment 2 Tomasz Slota 2008-07-02 15:37:23 UTC
the mergedScriptlets() method is another item that should be not shown by code completion
Comment 3 Tomasz Slota 2008-07-02 15:39:50 UTC
*** Issue 138823 has been marked as a duplicate of this issue. ***
Comment 4 Tomasz Slota 2008-07-02 15:43:04 UTC
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
Comment 5 Jindrich Sedek 2008-08-28 07:19:52 UTC
*** Issue 145370 has been marked as a duplicate of this issue. ***
Comment 6 David Konecny 2008-09-01 02:33:35 UTC
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.
Comment 7 Dusan Balek 2008-11-19 08:24:43 UTC
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.
Comment 8 David Konecny 2009-02-09 01:23:03 UTC
*** Issue 120580 has been marked as a duplicate of this issue. ***
Comment 9 David Konecny 2009-02-09 01:48:22 UTC
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?
Comment 10 Jindrich Sedek 2009-06-03 13:51:30 UTC
Dusan, could you please look at this issue? Thanks.
Comment 11 David Konecny 2010-10-05 19:23:08 UTC
This one needs to be resolved by Dusan as well.
Comment 12 Anton Chechel 2011-04-28 13:15:22 UTC
Dusane, any progress?
Comment 13 Marek Fukala 2013-01-03 10:49:12 UTC
Dusane, can you please take a look the issue?
Comment 14 Dusan Balek 2013-01-03 14:08:09 UTC
A possibility could be to use the Whitelist Support API recently created by Tomas Zezula.
Comment 15 Martin Balin 2015-09-17 13:10:27 UTC
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.