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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: