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 21894

Summary: Can't Mark Class as a Servlet if it extends HttpServlet
Product: javaee Reporter: Sakthivel Gopal <sakthivelg>
Component: CodeAssignee: issues@javaee <issues>
Status: CLOSED INVALID    
Severity: blocker    
Priority: P1    
Version: -FFJ-   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Sakthivel Gopal 2002-03-26 18:48:37 UTC
FFJ Current Build (for 4.0 FCS)

1. Copy a servlet (testservlet.java to testservlet1.java) 
outside the ide which extends HttpServlet.

2. From th explorer , choose testservlet1, on the popup 
select tools-> Mark as Servlet, IDE says
"File testservlet1.java cannot be converted to servlet. It 
doesn't implement javax.servlet.Servlet interface"
Comment 1 _ rkubacki 2002-03-27 10:29:46 UTC
Your testservlet1.java is not valid Java source file unless you change
class declaration from testservlet to testservlet1. When this is done
everything works correctly.
Comment 2 Petr Jiricka 2002-04-23 10:07:54 UTC
Changing target milestone to FFJ 4.0
Comment 3 Petr Jiricka 2002-04-23 10:18:37 UTC
Changing target milestone to FFJ 4.0
Comment 4 Petr Jiricka 2002-04-23 10:30:24 UTC
Changing target milestone to FFJ 4.0
Comment 5 Sakthivel Gopal 2002-07-19 23:34:44 UTC
CLosing as this is an invalid issue.
-sakthi