[jboss-jira] [JBoss JIRA] (JASSIST-198) java 6 for loop does not support

Eric Chaplet (JIRA) issues at jboss.org
Fri Aug 21 03:39:26 EDT 2015


    [ https://issues.jboss.org/browse/JASSIST-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13100493#comment-13100493 ] 

Eric Chaplet commented on JASSIST-198:
--------------------------------------

Up please, it's not really sugar.
A simpler code is more maintainable code

> java 6 for loop does not support
> --------------------------------
>
>                 Key: JASSIST-198
>                 URL: https://issues.jboss.org/browse/JASSIST-198
>             Project: Javassist
>          Issue Type: Feature Request
>    Affects Versions: 3.17.1-GA
>         Environment: sun JRE 1.7.0_21 64bits
>            Reporter: Hua Zhang
>            Assignee: Shigeru Chiba
>              Labels: for
>
> for (Object obj : new ArrayList()) ;
> the code above will throw CannotCompileException. Use code below to work around:
> for (java.util.Iterator iter = new ArrayList().iterator(); iter.hasNext(); ) ;



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list