Report error if public class is not declared in compilation unit with same name
Issue #11
resolved
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)
-
reporter -
reporter - changed status to resolved
- Log in to comment
Issue
#42was marked as a duplicate of this issue.