← Winnitude! Search  ·  Reader Mode (1567 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 8 LINKS

In "Reading and Writing Fields", the method getFields() is wrongly stated to be on the Field class · Issue #282 · java/devjava-content

Repository navigation

In "Reading and Writing Fields", the method getFields() is wrongly stated to be on the Field class  #282


New issue

New issue

Open

Open
In "Reading and Writing Fields", the method getFields() is wrongly stated to be on the Field class #282

Description

@authentictech's profile authentictech opened on Sep 29, 2026

In Learn Java > Mastering the API > Reflection and Method Handles > The Reflection API > Reading and Writing Fields, the section Locating Fields states:

You can try the same code with the Field.getFields() method.

However, the method getFields() does not exist on the Field class, it exists on the Class class (as demonstrated in the code example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions