playframework / playframework/play1
PlayStatusPlugin method computeApplicationStatus throws ClassCastException
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);

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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