Community
Participate
Working Groups
The original JDOM API (package org.eclipse.jdt.core.jdom) is obsolete. This API was replaced in 2.0 by the finter-grained DOM/AST API (org.eclipse.jdt.core.dom), but it was not until 3.0 that DOM/AST API was complete (was lacking a rewrite capability). The JDOM API is still used internally, but it's a matter of time before it is converted to use DOM/AST. Since we don't particularly want new clients to start using JDOM, it should be deprecated.
Created attachment 10318 [details] patch for o.e.jdt.core Patch adds deprecation notices to JDOM API, and reworks implementation to remove deprecations warnings.
Created attachment 10319 [details] patch for o.e.jdt.core.tests
Created attachment 10320 [details] patch to patch for o.e.jdt.core.tests.model to remove depecations
Philippe, Please review and release for M9.
Thanks Jim. I've released your changes.
org.eclipse.jdt.core.jdom.DOMException has not been deprecated. Jerome, is this intended? If not, we have to reopen this PR.
This was unintentional. DOMException should be deprecated like everything else in the package. The deprecation notice should be added for M9.
Created attachment 10812 [details] patch to o.e.jdt.core to deprecate DOMException
Thanks Olivier and Jim. I've released the DOMException patch.
Verified for 3.0 M9 with build I200405200010.