spockframework / spockframework/spock

Use of '_' as an identifier might not be supported in releases after Java SE 8

Open
#69 13 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.