#199 Parser Java: assert statement causes error

v1.0_(example)
closed-invalid
nobody
1
2002-11-07
2002-11-01
No

Any code that uses the jdk 1.4 "assert" statement
causes errors.

Sample code that causes Jalopy 1.0b8 to barf:

public class Test
{
public static void main(String[] args)
{
assert false : "Assertion!";
}
}

Both variations of the assert statement cause errors.

Discussion

  • Andrew Scherpbier

    • priority: 5 --> 9
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-07
    • priority: 9 --> 5
    • summary: assert statement causes error --> Parser Java: assert statement causes error
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-07

    Logged In: YES
    user_id=44430

    What is your setting for source compatibility (see 4.1.2)?

     
  • Andrew Scherpbier

    • status: open --> closed
     
  • Andrew Scherpbier

    Logged In: YES
    user_id=32816

    Doh! Setting the source to 1.4 solved the problem.
    I'll RTFM better in the future.

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-07
    • priority: 5 --> 1
    • status: closed --> closed-invalid
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-07

    Logged In: YES
    user_id=44430

    :)

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks