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 109620 - JSPParserAPI.getPageInfo() returns null - please clarify desired behaviour
Summary: JSPParserAPI.getPageInfo() returns null - please clarify desired behaviour
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 94582 94585
  Show dependency tree
 
Reported: 2007-07-13 12:07 UTC by Marek Fukala
Modified: 2008-04-25 13:13 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2007-07-13 12:07:40 UTC
There is plenty of issue caused by JSPParserAPI.getPageInfo() returning null under some circumstances. It is not clear
to me what is the desired behaviour of the method. Javadoc doesn't say anything about the possibility of returning null
so I am not sure if it signals a bug in the parser or something else (jsp out of webmodule etc..). Please clarify and
update the javadoc if necessary. 

Currently there are various ways of dealing with ${subj}:
1) test for null first and silently ignore
2) throw an informational exception if null returned
3) raw NPE

This needs to be consolidated somehow. Please address this issue ASAP, thanks.
Comment 1 Marek Fukala 2007-07-13 12:17:11 UTC
Issue #92982 is also indirectly related.
Comment 2 Petr Pisl 2007-07-16 14:36:17 UTC
The content of PageInfo is dependent on the jspparser success. There can be situation, when the parser is not able to
parse a jsp page at all. For example, if there is a problem with web.xml. 
Comment 3 Petr Pisl 2007-08-01 13:07:40 UTC
This issue is not defect in a code. It's mainly about missing documentation. Changing to task.
Comment 4 Jiri Prox 2008-04-11 01:16:27 UTC
moving opened issues from TM <= 6.1 to TM=Dev