Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: 6
    • Component/s: tools
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      This program doesn't compile:

      import java.lang.ref.*;
       
      public class CastProb {
       
        public ExtraRef prob(ReferenceQueue<Object> refQ) {
          return((ExtraRef)refQ.remove());
        }
       
        public static class ExtraRef
          extends WeakReference<Object> {
       
          int extraInfo;
       
          public ExtraRef(Object value) {
            super(value);
          }
        }
      }

      See http://forum.java.sun.com/thread.jspa?threadID=618527

      ###@###.### 2005-04-18 19:15:37 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: