Win2k sp2, jdk1.4.0_01,  idea #636.

 void test() {
  String test;
  int index;

  assert test.charAt(index) == '_' || Character.isLetter(test.charAt(index))
: "x";
 }

Result when extracting the test expression in the assertion:

 void test() {
  String test;
  int index;

  assert extracted() : "x";
 }

 private boolean extracted() {
  return test.charAt(index) == '_' ||
Character.isLetter(test.charAt(index));
 }


Carlos

--
Carlos Costa e Silva <[EMAIL PROTECTED]>


_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to