Double-semicolon in import statements

Jeremy Manson jeremymanson at google.com
Thu Aug 1 12:59:06 PDT 2013


Alex,

What about the following, which also compiles?  Can you
have ImportDeclaration TypeDeclaration ImportDeclaration?

import java.util.HashMap;;
import java.util.LinkedList;

public class Semicolon {
  public static void main(String[] args) {
     System.out.println("This program should not compile");
  }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130801/0ac4d727/attachment.html 


More information about the compiler-dev mailing list