Deprecation warnings inside deprecated classes

Issue #235 resolved
Jesper Öqvist created an issue

ExtendJ 8.0.1-234-g7a7bcbc Java SE 8

Deprecation warnings are not ignored inside a deprecated class.

// Deprecation warnings are not generated for uses of deprecated objects inside
// deprecated code.
// .result: COMPILE_PASS
public class Test {
  public A a; // No warning should be generated because this is inside a Deprecated class!

  public static void main(String[] args) {


class A { }

Expected result: no warnings should be reported.

Actual result: ExtendJ reports a deprecation warning inside the Test class:

    [junit] [FAIL] runTest[annotation/deprecated_01p](tests.extendj.TestJava7)
    [junit] Compilation produced unexpected warning:
    [junit] tests/annotation/deprecated_01p/ warning: A has been deprecated

Comments (1)

  1. Log in to comment