Menu

#83 non compileable output of beautification

closed
None
1
2002-07-28
2002-06-14
No

I am using jalopy (jalopy-jbuilder-bundle-0.7.1.zip)
from within JBuilder 5.

when I run jalopy on the following peace of
code:
----------------------------------------
public void cleanUp() {
try {
userTx.commit();
if (userTx.getStatus() ==
ETransactionStatus.MARKED_ROLLBACK) {
flop("Should have thrown exception because
of setRollbackOnly()");
}
} // Should end up here if setRollbackOnly() has
been activated catch
(com.tssap.dtr.pvc.basics.transaction.MarkedRollba
ckException e) {}
catch (Exception e) {
flop("Failed comitting transaction");
}
}

----------------------------------------

the line "catch (Exception e) ..." and the preceeding
line containing a single line comment are combined
in one line.
This leads to non compileable code because now
the catch statement has moved into a comment

Discussion

  • Christian Halstrick

    my configuration

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-06-15

    Logged In: YES
    user_id=44430

    Duplicates #562034. Will be fixed with the next beta.
    Workaround: use C brace style

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-06-15
    • assigned_to: nobody --> marcohu
    • status: open --> closed
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-07-28
    • priority: 5 --> 1
     

Log in to post a comment.