Jump to content
We've recently updated our Privacy Statement, available here ×

JRJdtCompiler reporting wrong compiler class


rcracel

Recommended Posts

the getCompilerClass() method of JRJdtCompiler is return JRJavacCompiler.class.getName() instead of JRJdtCompiler.class.getName(). Am I missing something here or is a copy and paste error?

 

Not a big deal, but I would like to be able to log the name of the compiler class so that I can be sure that the deployed application and the local unit tests are using the same compiler class.

Post edited by: rcracel, at: 2006/09/12 15:39

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

JRJdtCompiler.getCompilerClass() returns JRJavacCompiler.class because we didn't want to force the dependency on the JDT jar when using compiled reports. The compiler class is saved with the compiled report and used while loading compiled reports to load evaluator classes. All the Java report compilers share the code for loading evaluator classes, so we didn't want to require the JDT jar just for loading reports.

 

If you want to get the actual compiler class, you should do getClass() on the compiler instance.

 

HTH,

Lucian

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...