You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Override
public String getTitle(){
return title;
}; // <----- note the semicolon here
this crashes the trivial getter routine (actually the parser called by it crashes) and stops lomboker with a following message:
java.lang.UnsupportedOperationException: kept child(MethodDeclaration) vs ";" <102> (line 313,col 3)-(line 313,col 3)
at com.github.javaparser.printer.lexicalpreservation.Difference.applyKeptDiffElement(Difference.java:513)
Workaround: remove the semicolon or replace }; with just }. Have not tested semicolon on it's own, like so
} // here some method ends
;
While not great, it's legal to place semicolon on it's own line, so ideally this wouldn't crash the reduction (or any other operations, TBH). If not, then I'd welcome wrapping the exception in Lomboker's own with a message "You have an orphaned semicolon at line 313, remove it and restart the process".
BTW, and firstly and foremostly! Thank you for the tool. It saved me hours of work already.
If we have a getter like this:
this crashes the trivial getter routine (actually the parser called by it crashes) and stops lomboker with a following message:
Workaround: remove the semicolon or replace
};
with just}
. Have not tested semicolon on it's own, like soWhile not great, it's legal to place semicolon on it's own line, so ideally this wouldn't crash the reduction (or any other operations, TBH). If not, then I'd welcome wrapping the exception in Lomboker's own with a message "You have an orphaned semicolon at line 313, remove it and restart the process".
BTW, and firstly and foremostly! Thank you for the tool. It saved me hours of work already.
The text was updated successfully, but these errors were encountered: