2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-06-05 17:44:38 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 6302956
|
|
|
|
* @summary Illegal cast allowed Properties -> Map<String, String>
|
2014-06-05 17:44:38 +00:00
|
|
|
* @compile/fail/ref=T6302956.out -XDrawDiagnostics T6302956.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
public class T6302956 {
|
|
|
|
Object test() {
|
|
|
|
return (Map<String, String>)System.getProperties();
|
|
|
|
}
|
|
|
|
}
|