-
Notifications
You must be signed in to change notification settings - Fork 380
Closed
Description
Compiler warning "[deprecation] ChoiceGeneratorBase() in ChoiceGeneratorBase has been deprecated" when build with JDK 9 and later.
[javac] /home/travis/build/javapathfinder/jpf-core/src/main/gov/nasa/jpf/vm/choice/PermutationCG.java:35: warning: [deprecation] ChoiceGeneratorBase() in ChoiceGeneratorBase has been deprecated
[javac] public PermutationCG (PermutationGenerator pg){
[javac] ^
jpf-core/src/main/gov/nasa/jpf/vm/choice/PermutationCG.java
Lines 30 to 43 in 18a0c42
| public class PermutationCG extends ChoiceGeneratorBase<int[]>{ | |
| protected PermutationGenerator pg; | |
| protected int[] permutation; | |
| public PermutationCG (PermutationGenerator pg){ | |
| this.pg = pg; | |
| } | |
| public PermutationCG (String id, PermutationGenerator pg){ | |
| super(id); | |
| this.pg = pg; | |
| } | |
Default constructor of the super class 'gov.nasa.jpf.vm.ChoiceGeneratorBase' is marked deprecated, but the constructor PermutationCG (PermutationGenerator) is not, thus resulting in the warning.
jpf-core/src/main/gov/nasa/jpf/vm/ChoiceGeneratorBase.java
Lines 99 to 110 in 18a0c42
| /** | |
| * don't use this since it is not safe for cascaded ChoiceGenerators | |
| * (we need the 'id' to be as context specific as possible) | |
| */ | |
| @Deprecated | |
| protected ChoiceGeneratorBase() { | |
| id = "?"; | |
| } | |
| protected ChoiceGeneratorBase(String id) { | |
| this.id = id; | |
| } |
Travis log:
https://travis-ci.org/javapathfinder/jpf-core/builds/385707808#L2425-L2427
Metadata
Metadata
Assignees
Labels
No labels