JDK-4909749 : (proxy) test bug: .../Proxy/ClassRestrictions.java import has become ambiguous
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_2003
  • CPU: generic,x86
  • Submitted: 2003-08-20
  • Updated: 2012-09-28
  • Resolved: 2003-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Duplicate :  
Relates :  
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.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b18 VERIFIED IN: tiger
14-06-2004

SUGGESTED FIX Replace the type-import-on-demand declarations with single-type-import declarations as appropriate.
11-06-2004

EVALUATION Yes, will fix. ###@###.### 2003-08-21
21-08-2003