unlv-evol / PatchIntegrator

The goal of this project is to integrate missed patches from base repository to a divergent variant fork.
0 stars 0 forks source link

Bug: ClassCastException #1

Open danielogen opened 1 year ago

danielogen commented 1 year ago

Describe the bug Error occurs when trying to collect information on EXTRACT_AND_MOVE_OPERATION refactoring operation. This error is likely a result of changes in the refactoringMiner 2.3 internal code base. See sample error below;

Caused by: java.lang.ClassCastException: class gr.uom.java.xmi.UMLInitializer cannot be cast to class gr.uom.java.xmi.UMLOperation (gr.uom.java.xmi.UMLInitializer and gr.uom.java.xmi.UMLOperation are in unnamed module of loader 'app')

To Reproduce Steps to reproduce the behavior:

  1. git clone the project locally and setup in intellij
  2. Run the project to reproduce the error

Expected behavior Success extract information on EXTRACT_AND_MOVE_OPERATION refactoring operation

Screenshots

Screen Shot 2023-04-11 at 12 29 50 PM

Desktop (please complete the following information):

Additional context

johnxu21 commented 1 year ago

If this issue is resulting from refactoring miner, I suggest you post it on refactoringminer's repo.

On Mon, Apr 10, 2023, 21:52 Daniel Ogenrwot @.***> wrote:

Caused by: java.lang.ClassCastException: class gr.uom.java.xmi.UMLInitializer cannot be cast to class gr.uom.java.xmi.UMLOperation (gr.uom.java.xmi.UMLInitializer and gr.uom.java.xmi.UMLOperation are in unnamed module of loader 'app')

— Reply to this email directly, view it on GitHub https://github.com/unlv-evol/PatchIntegrator/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6X73OR3RFZLMRLECOARY3XATPPNANCNFSM6AAAAAAWZYCZP4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

danielogen commented 1 year ago

This is okay... I also see that RefactoringMiner released some updates (2.3.0 -> 2.4.0) about a month ago. I will try it out to see if it fixes the issue.

see: https://github.com/tsantalis/RefactoringMiner/releases/tag/2.4.0