X10
  1. X10
  2. XTENLANG-92

"cannot find symbol Iterable" in Java code for class that implements Iterable

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: X10 1.7 - JVM hosted
    • Fix Version/s: X10 1.7.1 - JVM Hosted
    • Component/s: XRX Runtime
    • Labels:
      None
    • Number of attachments :
      0

      Description

      public class Bug {
      
          static class C implements Iterable[int] {
              incomplete public def iterator(): Iterator[int];
          }
      
      }
      

      cannot find symbol
      symbol : class Iterable
      location: package java.util
      implements java.util.Iterable<java.lang.Integer>
      ^
      classes\Bug.java:46: interface expected here
      implements java.util.Iterable<java.lang.Integer>
      ^
      2 errors

        Activity

        Hide
        Nate Nystrom added a comment -

        NativeRep annotation on x10.lang.Iterable pointed to java.util.Iterable rather than java.lang.Iterable. Annotation on x10.util.Iterator did not include parameter type.

        Show
        Nate Nystrom added a comment - NativeRep annotation on x10.lang.Iterable pointed to java.util.Iterable rather than java.lang.Iterable. Annotation on x10.util.Iterator did not include parameter type.
        Hide
        Bruce Lucas added a comment -

        Fix verified.

        Show
        Bruce Lucas added a comment - Fix verified.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bruce Lucas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: