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

Illegal cast allowed Properties -> Map<String, String>

XMLWordPrintable

    • generic
    • generic

      https://bugs.eclipse.org/bugs/show_bug.cgi?id=102599

      javac accepts this illegal program:

      import java.util.Map;
       
      public class Test {
          Object test() {
              return (Map<String, String>)System.getProperties();
          }
      }

            Unassigned Unassigned
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: