Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8168444

(jdeprscan) improper handling of primitives and primitive array types

XMLWordPrintable

    • b168
    • Verified

        Jdeprscan will scan for deprecated types. Most types in the system are reference types, so their class names can be looked up. However, there are some reference types which are primitive arrays, which cannot be looked up. Primitive array types have descriptors such as [B for a byte[].

        In most cases looking for such types in the deprecation database returns empty, which is OK, but which is actually an error with innocuous consequences. In other cases, jdeprscan will search the classpath for the type. This results in errors of the form:

        error: can't find class [C
        error: can't find class [B

        Jdeprscan's handling of types needs to be refined so that it never searches for primitive or primitive array types.

              smarks Stuart Marks
              smarks Stuart Marks
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: