Report error if public class is not declared in compilation unit with same name

Issue #11 resolved
Jesper Öqvist created an issue

Javac reports an error if a public class is not declared in a compilation unit with a matching name. See for example this output from javac 1.7.0_21:

T1.java:1: error: class T2 is public, should be declared in a file named T2.java
public class T2 {
       ^

Comments (2)

  1. Log in to comment