Enhanced For Loop Failure

Open
#62 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
compilers

Research direction

Start by inspecting the decompilation of net\minecraft\client\gui\widget\list\OptionsRowList, especially func_238518_c_ and its enhanced for loop over func_230969_at__(). Reproduce the reported failure and trace the relevant FernFlower handling; done means this method is decompiled correctly without the enhanced-loop failure.

Written by the indexing model from the issue text.

Description

1.16-pre1 net\minecraft\client\gui\widget\list\OptionsRowList

   public Optional<Widget> func_238518_c_(double p_238518_1_, double p_238518_3_) {
      label21:
      for(OptionsRowList.Row optionsrowlist$row : this.func_230969_at__()) {
         Iterator iterator = optionsrowlist$row.field_214385_a.iterator();

         Widget widget;
         while(true) {
            if (!iterator.hasNext()) {
               continue label21;
            }

            widget = (Widget)iterator.next();
            if (widget.func_230990_b_(p_238518_1_, p_238518_3_)) {
               break;
            }
         }

         return Optional.of(widget);
      }

      return Optional.empty();
   }
Dominant language
No language data
Stars
110
Forks
49
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MinecraftForge/ForgeFlower

All issues in MinecraftForge/ForgeFlower

Similar issues

More Compilers issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.