Overview

# Introduction

This document lists changes made to the srcmodel API. Please ask on the `dev@openide.netbeans.org` mailing list if you have any questions about the details of a change, or are wondering how to convert existing code to be compatible.

# Index of APIs

- Java Source Hierarchy

# Incompatible changes by date

Fuller descriptions of all changes can be found below (follow links).

Not all deprecations are listed here, assuming that the deprecated APIs continue to essentially work. For a full deprecation list, please consult the Javadoc.

- (Mar 16 '04) Deprecated `ClassElement.forName(String)`

# All changes by date

- (Aug 3 '04) Moving org.netbeans.api.java.comparators to srcmodel module
- (Mar 16 '04) Deprecated `ClassElement.forName(String)`

# Changes by version

These API specification versions may be used to indicate that a module requires a certain API feature in order to function. For example, if you see here a feature you need which is labelled `1.20`, your manifest should contain in its main attributes the line:

    OpenIDE-Module-Module-Dependencies: org.openide.src > 1.20

- (4.48) Deprecated `ClassElement.forName(String)`
- (1.3) Moving org.netbeans.api.java.comparators to srcmodel module

# Changes by affected class

## `org.openide.src.ClassElement`

- (Mar 16 '04) Deprecated `ClassElement.forName(String)`

## `org.netbeans.api.java.comparators.JavaElementComparator`

- (Aug 3 '04) Moving org.netbeans.api.java.comparators to srcmodel module

# Details of all changes by API and date

## Java Source Hierarchy

### Moving org.netbeans.api.java.comparators to srcmodel module

Aug 3 '04; API spec. version: 1.3; affected top-level classes: `JavaElementComparator`; made by: jpokorsky; issues: #40945
Moving together the org.netbeans.api.java.comparators package from java module which is too tight with srcmodel and belongs into the same module, just for historical reasons it was introduced in java module. This will provide backward compatibility and allow us to deprecate and remove the src hierarchy and the comparators at the same time.

### Deprecated `ClassElement.forName(String)`

Mar 16 '04; API spec. version: 4.48; affected top-level classes: `ClassElement`; made by: jglick

`ClassElement.forName(String)` was deprecated as it assumed that there is a global classpath in the IDE, which is not true as of NetBeans 4.0. Use the Classpath API instead.

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.