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

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

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      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();
          }
      }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: