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 205184 - Some classes use deprecated interfaces.
Summary: Some classes use deprecated interfaces.
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: API (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 10:31 UTC by debuggercz
Modified: 2015-09-17 13:21 UTC (History)
0 users

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 debuggercz 2011-11-16 10:31:11 UTC
Product Version: NetBeans IDE Dev (Build 201111150600)
Java: 1.7.0_01; Java HotSpot(TM) 64-Bit Server VM 21.1-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\deuggercz\.netbeans\dev
Cache directory: C:\Users\deuggercz\.netbeans\dev\var\cache

Steps
1. Use File | New Project... to create new Web Application project.
2. Invoke File | New File... from main menu.
3. Select XML category and DTD Entity as file type. Push Next.
4. Type "time" into File Name, change Folder field to src\java\dtd and press Finish.
5. Open file on the URL:
http://netbeans.org/projects/qa/sources/web-content/content/trunk/modules/editor/promo-g/dtd/time.dtd?rev=53
6. Copy its content to the clipboard.
7. Open time.dtd file in your web project 
8. Press CTRL+A in the editor and then click Edit | Paste from main menu.
9. Right click in editor area of time.dtd file and invoke SAX Document Handler Wizard... from popup menu.
10. Push Next three times.
11. Rename TimeHandler, TimeHandlerImpl, TimeParser to MyTimeHandler, MyTimeHandlerImpl, MyTimeParser and then push Finish.
12. Open MyTimeParser.java to the editor view.

Class MyTimeParser implements interface DocumentHandler but this interface is deprecated.
Also other classes MyTimeHandler.java and MyTimeHandlerImpl.java import/use deprecated interface (org.xml.sax.AttributeList).
Comment 1 Martin Balin 2015-09-17 13:21:29 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.