Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

MetricValidation の Fitness 計測でクラス以外を読み込むとバグる #10

Closed
tanimon opened this issue Nov 1, 2018 · 0 comments · Fixed by #12
Closed

MetricValidation の Fitness 計測でクラス以外を読み込むとバグる #10

tanimon opened this issue Nov 1, 2018 · 0 comments · Fixed by #12

Comments

@tanimon
Copy link
Owner

tanimon commented Nov 1, 2018

Interface や Enum を読み込むとバグる

Exception in thread "main" spoon.SpoonException: parseClass only considers classes (and not interfaces and enums). Please consider using a Launcher object for more advanced usage.
	at spoon.Launcher.parseClass(Launcher.java:875)
	at jp.kusumotolab.kgenprog.ga.MetricValidation.calculateFitness(MetricValidation.java:31)
tanimon added a commit that referenced this issue Nov 13, 2018
- Calculate the sum of complexity not the average
- Use ComplexityVisitor	not ComlexityScanner
@tanimon tanimon closed this as completed Nov 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant