[Bug 3013] New: [IcedTea7] Backport "7159445: (javac) emits inaccurate diagnostics for enhanced for-loops"

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Jun 10 17:20:10 UTC 2016


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3013

            Bug ID: 3013
           Summary: [IcedTea7] Backport "7159445: (javac) emits inaccurate
                    diagnostics for enhanced for-loops"
           Product: IcedTea
           Version: 2.6.6
          Hardware: all
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: IcedTea
          Assignee: gnu.andrew at redhat.com
          Reporter: gnu.andrew at redhat.com
                CC: unassigned at icedtea.classpath.org

Error message in OpenJDK 8 / IcedTea 3.x is more helpful and specific.

$ /usr/lib/jvm/icedtea-7/bin/javac ForeachBadInitialization.java 
ForeachBadInitialization.java:29: error: not a statement
        for (a : s) {}
             ^
ForeachBadInitialization.java:29: error: ';' expected
        for (a : s) {}
              ^
ForeachBadInitialization.java:29: error: illegal start of expression
        for (a : s) {}
               ^
ForeachBadInitialization.java:29: error: ';' expected
        for (a : s) {}
                ^
4 errors

$ /usr/lib/jvm/icedtea-8/bin/javac ForeachBadInitialization.java 
ForeachBadInitialization.java:29: error: bad initializer for for-loop
        for (a : s) {}
             ^
1 error

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20160610/9fe41d06/attachment.html>


More information about the distro-pkg-dev mailing list