Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeuristicMutationが条件式の再利用に対応していない #806

Open
tt-kuma opened this issue Dec 2, 2020 · 0 comments
Open

HeuristicMutationが条件式の再利用に対応していない #806

tt-kuma opened this issue Dec 2, 2020 · 0 comments

Comments

@tt-kuma
Copy link
Contributor

tt-kuma commented Dec 2, 2020

問題

HeuristicMutationを利用する場合,再利用候補に条件式が存在するとClassCastExceptionでkgpが落ちる.

2020-12-02 16:19:42 [main] [ERROR] CUILauncher - class org.eclipse.jdt.core.dom.InfixExpression cannot be cast to class org.eclipse.jdt.core.dom.Statement (org.eclipse.jdt.core.dom.InfixExpression and org.eclipse.jdt.core.dom.Statement are in unnamed module of loader 'app')
java.lang.ClassCastException: class org.eclipse.jdt.core.dom.InfixExpression cannot be cast to class org.eclipse.jdt.core.dom.Statement (org.eclipse.jdt.core.dom.InfixExpression and org.eclipse.jdt.core.dom.Statement are in unnamed module of loader 'app')
	at jp.kusumotolab.kgenprog.ga.mutation.heuristic.OperationGenerator.chooseNodeForReuse(OperationGenerator.java:65)
	at jp.kusumotolab.kgenprog.ga.mutation.HeuristicMutation.makeOperation(HeuristicMutation.java:70)
	at jp.kusumotolab.kgenprog.ga.mutation.Mutation.makeBase(Mutation.java:93)
	at jp.kusumotolab.kgenprog.ga.mutation.Mutation.exec(Mutation.java:82)
	at jp.kusumotolab.kgenprog.KGenProgMain.run(KGenProgMain.java:113)
	at jp.kusumotolab.kgenprog.CUILauncher.launch(CUILauncher.java:72)
	at jp.kusumotolab.kgenprog.CUILauncher.main(CUILauncher.java:35)

原因

HeuristicMutationHeuristicStatementSelectionにより再利用候補から文を選択している.
#710 により再利用候補に条件式が含まれるようになったが,HeuristicStatementSelectionが更新されていない.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant