Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      This program should compile:

      public class Test {
      public void saveA (AbstractClass<?> busObj) {
      // Error here
      ConcreteClass sqlA = (ConcreteClass) busObj;
      }
      }
       
      abstract class AbstractClass<B> {
      public abstract void doSomething (B b);
      }
       
      class ConcreteClass extends AbstractClass<String> {
      public void doSomething (String b) {
      }
      }

      See http://forum.java.sun.com/thread.jspa?threadID=636425&tstart=0

      ###@###.### 2005-06-15 18:03:19 GMT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ahe Peter Ahe
                Reporter:
                ahe Peter Ahe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: