playframework / playframework/play1

PlayStatusPlugin method computeApplicationStatus throws ClassCastException

Open
#1,436 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
671
Avg merge
12d 15h
Merged PRs (30d)
1

Description

Hi.
I noticed that PlayStatusPlugin throws an ClassCastException when the input json=true.

Steps to reproduce:
String playStatus = new PlayStatusPlugin().computeApplicationStatus(true);

image

Anyone else get this error?

It works fine if input to method is false.

Play Version (1.7.1 )
Operating System (Windows 11)
JDK

openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)

Contributor guide

Open the contributing guide

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.

Research direction

Start at PlayStatusPlugin.computeApplicationStatus and reproduce the reported call with true on the stated Play 1.7.1 setup. Done means the method no longer throws ClassCastException for true while preserving the existing behavior for false.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.