[Bug 3014] New: [IcedTea6] 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:22:06 UTC 2016
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3014
Bug ID: 3014
Summary: [IcedTea6] Backport "7159445: (javac) emits inaccurate
diagnostics for enhanced for-loops"
Product: IcedTea
Version: 6-1.13.11
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-6/bin/javac ForeachBadInitialization.java
ForeachBadInitialization.java:29: not a statement
for (a : s) {}
^
ForeachBadInitialization.java:29: ';' expected
for (a : s) {}
^
ForeachBadInitialization.java:29: illegal start of expression
for (a : s) {}
^
ForeachBadInitialization.java:29: ';' 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/c01d7325/attachment.html>
More information about the distro-pkg-dev
mailing list