Menu

#156 failed to format array init in if

v1.0_(example)
closed-fixed
None
1
2002-11-13
2002-09-10
No

Hi,

I found a problem if a array initialization is inside a
if statement. Example:

if (ebi.hasPropertyDescriptors(new String[] {
modelPropertyName
})) {
modelDescriptor =
ebi.getPropertyDescriptor(modelPropertyName);
} else {
String msg = "modelclass " +
model.getClass() +
" does not contain the
required properties.";
cat.fatal(msg);
throw new IllegalStateException(msg);
}

It seems that jalopy thinks the initialization bracket
finish the if statement.

Greetings,
Dirk

Discussion

  • Marco Hunsicker

    Marco Hunsicker - 2002-09-13

    Logged In: YES
    user_id=44430

    The next version will sort it out.

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-09-13
    • priority: 5 --> 1
    • assigned_to: nobody --> marcohu
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-09-15
    • status: open --> open-fixed
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-13
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.