Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7397819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T03:47:45+00:00 2026-05-29T03:47:45+00:00

When interpreting a .java source file, in this case a JUnit test suite with

  • 0

When interpreting a .java source file, in this case a JUnit test suite with the following declaration in it:

@RunWith(Suite.class)
@SuiteClasses({ MiamiAForm.class })

Why does Beanshell (version 1.3 and also 2.1b5) choke on those characters?

Evaluation Error: Sourced file: com\co\tests\TestSuite.java 
Token Parsing Error: Lexical error at line 16, column 10.  
Encountered: "B" (66), after : "@": <at unknown location>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T03:47:46+00:00Added an answer on May 29, 2026 at 3:47 am

    Because beanshell does not parse the syntax for some java 1.5 features. See Issue 24: Support of java 1.5 lang features (generics, enum, annotations), still open. Generics are now (partially) supported, but enums and annotations are not.

    So it seems like it’s not possible to run JUnit 4 tests under beanshell. Try Groovy, if you really don’t want to compile them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At work we have the following construct to enable interpreting an IP address as
A Java thread is always in one of the following ten states: NEW: Just
I am porting some stuff from C# to Java and I need a class
I am trying to use the FileWalkTree() method in JDK 7 (java.nio.file) . To
My hangup with the following problem is interpreting what is meant by brute-forceness, and
I'm having difficulty interpreting this formula that was from a past exam paper that
I'm not quite certain how to go about interpreting this. I'm solving a fairly
What are the mechanics behind Java automatically interpreting string literals as String objects, since
I'm having a hard time dealing with a Java garbage collection problem, and interpreting
I could use some help interpreting results from the Instruments Leaks tool. This is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.