Bug 297907 - aop.xml validation takes a long time if DTD is specified
Summary: aop.xml validation takes a long time if DTD is specified
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: LTWeaving (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 339295 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-15 16:40 EST by Mario Scalas CLA
Modified: 2013-06-24 11:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Scalas CLA 2009-12-15 16:40:58 EST
I'm using LTW with aop.xml. In order to use eclipse completion for XML I specify the DTD within the file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.eclipse.org/aspectj/dtd/aspectj.dtd">
<aspectj>
    <aspects>
           ...
    </aspects>
</aspectj>

Though, at runtime I get this message:

AspectJ - WARN - could not read DTD -//AspectJ//DTD//EN

which takes quite a while to appear since I'm using a mobile phone connection (which is not exactly fast). If I remove the DTD, it runs smoothly but I loose code completion.

Perhaps a runtime option to disable validation will be greatly appreciated.
Comment 1 Eric Jain CLA 2011-04-14 13:49:25 EDT
*** Bug 339295 has been marked as a duplicate of this bug. ***
Comment 2 Eric Jain CLA 2011-04-14 13:51:59 EDT
I've noticed the same error being logged, but it doesn't look like AspectJ is trying to retrieve the DTD from eclipse.org. Instead, it looks for the DTD in the classpath, but can't find it (see bug 339295).
Comment 3 Andrew Clement CLA 2013-06-24 11:07:24 EDT
unsetting the target field which is currently set for something already released