Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.2
    • Component/s: examples
    • Labels:
      None

      Activity

      Show
      Ian Evans added a comment - See the following tech note: http://docs.oracle.com/javase/7/docs/technotes/guides/language/type-inference-generic-instance-creation.html
      Hide
      Ian Evans added a comment -

      According to the following grep regex:

      grep -r "new\s[a-zA-Z0-9]*<[a-zA-Z0-9]." *
      

      all the examples except for mailconnector are using the correct diamond operator per JDK 7. The above command will show matches in rsvp, but that is because the entity type for collections must be explicitly set.

      Show
      Ian Evans added a comment - According to the following grep regex: grep -r " new \s[a-zA-Z0-9]*<[a-zA-Z0-9]." * all the examples except for mailconnector are using the correct diamond operator per JDK 7. The above command will show matches in rsvp, but that is because the entity type for collections must be explicitly set.
      Hide
      rcervera added a comment -

      I'm working on adapting the new mailconnector sample to our tree. I'll watch out for these instances and fix them.

      Show
      rcervera added a comment - I'm working on adapting the new mailconnector sample to our tree. I'll watch out for these instances and fix them.
      Hide
      rcervera added a comment -

      I have removed the mailconnector example from the tree.

      Show
      rcervera added a comment - I have removed the mailconnector example from the tree.

        People

        • Assignee:
          rcervera
          Reporter:
          Ian Evans
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: