From mazas.marc at gmail.com Tue Jan 9 16:05:19 2024 From: mazas.marc at gmail.com (mazas.marc at gmail.com) Date: Tue, 09 Jan 2024 16:05:19 -0000 Subject: Small discrepancies in JLS 14+ Message-ID: <036601da4315$a14ccc70$e3e66550$@gmail.com> Hi all This if of any help. While writing a parser of the JLS (in fact a translator from the JLS grammar to a corresponding JavaCC grammar), I found some discrepancies. The most interesting one is in JLS 14+ (e.g. for JLS 21: https://docs.oracle.com/javase/specs/jls/se21/html/jls-19.html): The (last) production ConstantExpression is no more called in other productions; formerly it was called in SwitchLabel, which now calls CaseConstant {, CaseConstant}. The corresponding chapters (e.g. https://docs.oracle.com/javase/specs/jls/se14/html/jls-15.html#jls-15.29) still uses the term "Constant Expressions"; shouldn't it use "Case Constants" ? Another one was PackageName in JLS 1.8, defined but not called, but now it is called. The Type production is also defined but not called (one can understand that). And of course the CompilationUnit is defined and not called. Regards Marc Mazas -------------- next part -------------- An HTML attachment was scrubbed... URL: