On Fri, 9 May 2025 21:22:15 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:
> ``` > 84 assert(compare_symbols(fields->adr_at(i - 1)->name(constants), > fields->adr_at(i)->name(constants)) < 0, "Fields should be sorted"); > ``` > > Happens with names matching (not signatures). How does the same name for two > fields work if it spans a JUMP_TABLE_STRIDE? > > This should add some tests. The stream contains 'declared fields', not including superclass... How could two names match? https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.3 > It is a compile-time error for the body of a class declaration to declare two > fields with the same name. Is this some generated code that breaks JLS? ------------- PR Comment: https://git.openjdk.org/jdk/pull/24847#issuecomment-2871010896