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

Summary: JSPParserAPI.getPageInfo() returns null - please clarify desired behaviour
Product: javaee Reporter: Marek Fukala <mfukala>
Component: JSP ParserAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 94582, 94585    

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