Skip to content

Compiler hangs instead of reporting an error if infinitely recursive function is called #9840

@Labadore64

Description

@Labadore64

GWT version: gwt-2.10.0
Browser (with version): N/A
Operating System: Windows 10


Description

If there is an infinitely recursive call, it will cause the compiler to hang on permutation 0. There should be an error reported and exiting the compiler. I tested this in Eclipse, version 2022-06 (4.24.0); not sure if it also happens on the command line or in different editors.

Steps to reproduce

Create a method that calls itself infinitely in a loop, and call this method. Code example:

public void methodTest(){
	methodTest();
}

Then compile the GWT project. It will hang on permutation 0.

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