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

(proxy) test bug: .../Proxy/ClassRestrictions.java import has become ambiguous

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • core-libs
    • tiger
    • generic, x86
    • generic, windows_2003
    • Verified

      The regression test

      test/java/lang/reflect/Proxy/ClassRestrictions.java

      has been failing to compile since the addition of the class java.net.Proxy (see 4696512) into Tiger (8/17 JSN integration).

      The test just uses following type-import-on-demand declarations:

      import java.lang.reflect.*;
      import java.net.*;

      and expects to be able to refer to the type java.lang.reflect.Proxy by its simple name. With types named Proxy in both java.lang.reflect and java.net, such a reference is ambiguous and a compile-time error occurs.

            peterjones Peter Jones (Inactive)
            peterjones Peter Jones (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: