Double-semicolon in import statements

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


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...

More information about the compiler-dev mailing list