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

  • SEARCH
  • Home
  • 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 7803135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:28:36+00:00 2026-06-02T01:28:36+00:00

I am trying to use the @Param annotation on a field with the command

  • 0

I am trying to use the @Param annotation on a field with the command line args of the form: “-Dmyparamname=val1,val2,val3” and it is not working. I am using caliper-0.5-rc1.jar. My actual usage looks like:

java -classpath "mylongclasspath" MyBenchmarkClass -Jjit=-client,-server -Dprovider=CGLIB,JAVASSIST,JAVAPROXY

My benchmark class has the following:

public class MyBenchmarkClass extends SimpleBenchmark {
    @Param
    private String provider;

    ...
}

But when I run I am only getting options for the jit, but not for the -Dprovider:

 0% Scenario{vm=java, trial=0, benchmark=M1, jit=-server} 30.40 ns; ?=0.13 ns @ 3 trials
 17% Scenario{vm=java, trial=0, benchmark=M2, jit=-server} 31.42 ns; ?=0.08 ns @ 3

etc., eventually repeating all benchmarks with “jit=-client”

I would have expected to see:

 0% Scenario{vm=java, trial=0, benchmark=M1, jit=-server provider=CGLIB} ...etc. 

I have tried all sorts of options: including quotes around the values in the command arg, providing them as a static field of type List internally, etc. There is never any indication that it is attempting to iterate over supplied values of “provider”.

Any thoughts on what I am doing wrong?

  • 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-06-02T01:28:38+00:00Added an answer on June 2, 2026 at 1:28 am

    It looks like the 0.5-rc1 build (the only thing in Maven Central) is the problem. I swiped a preliminary 1.0 build from another project (I didn’t want to have to download the whole project and Maven and build it).

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

Sidebar

Related Questions

Hi I'm trying use a datepicker on a field I have. I'm trying to
i'm trying to use iirf for what looks like asimple rewrite but it's not
I am trying to use a font, that is not installed on my local
I'm creating a JSF 2-application and I'm trying to use form validation in the
I'm trying to use Valgrind on a program that I'm working on, but Valgrind
I have an xsl:param that I'm trying to use to do a template match
I've been trying to use the param in my cruisecontrol build config file to
ok I am trying to use the f:param here to pass the requestid as
My models I'm trying to create a form for an Annotation . This annotation
I'm trying to use XSLT to append context-param as last sibling. There's no common

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.