spockframework / spockframework/spock
Use of '_' as an identifier might not be supported in releases after Java SE 8
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 483
- PR merge metrics
- No merged PRs in 30d
Description
When compiling Spock with JDK 8 the compiler gives this warning message:
Specification.java:46: warning: '_' used as an identifier
public static final Object _ = Wildcard.INSTANCE;
^
(use of '_' as an identifier might not be supported in releases after Java SE 8)
Will this become an issue for Spock in the future with Java 9+, and if so what should we do about it.
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 with Specification.java:46 and reproduce the warning when compiling Spock with JDK 8, then check compilation against Java 9 or later. Determine whether the '_' identifier remains compatible and document the required resolution; done means the supported Java releases compile without this warning or incompatibility.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100