Janino

JCI-53: Stack overflow on cross imports in commons-jci-janino

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Incomplete
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

Activity

Hide
Mark Proctor added a comment -

the current JCI implementation is not correctly handling all problems, for instance ParseExceptions are being thrown up and not placed into the problems array. I've since added this to the compiler.compile method, but I can't help feeling this should be handled elsewhere. Am I correct in assuming that IOException and CompileException are correctly handled, what about ScanException, is that thrown too without being added to the problems array.

This is what I've added to JaninoJavaCompiler for now.
try { compiler.compile(resources); } catch ( ScanException e ) { problems.add(new JaninoCompilationProblem(e)); // is this already handled? } catch ( ParseException e ) { problems.add(new JaninoCompilationProblem(e)); // we know this isn't handled } catch ( IOException e ) { // I'm hoping the existing compiler problems handler catches these } catch ( CompileException e ) { // I'm hoping the existing compiler problems handler catches these }

Show
Mark Proctor added a comment - the current JCI implementation is not correctly handling all problems, for instance ParseExceptions are being thrown up and not placed into the problems array. I've since added this to the compiler.compile method, but I can't help feeling this should be handled elsewhere. Am I correct in assuming that IOException and CompileException are correctly handled, what about ScanException, is that thrown too without being added to the problems array. This is what I've added to JaninoJavaCompiler for now. try { compiler.compile(resources); } catch ( ScanException e ) { problems.add(new JaninoCompilationProblem(e)); // is this already handled? } catch ( ParseException e ) { problems.add(new JaninoCompilationProblem(e)); // we know this isn't handled } catch ( IOException e ) { // I'm hoping the existing compiler problems handler catches these } catch ( CompileException e ) { // I'm hoping the existing compiler problems handler catches these }
Hide
Mark Proctor added a comment -

sorry with better formatting this time:

This is what I've added to JaninoJavaCompiler for now.

try {
    compiler.compile(resources);
} catch ( ScanException e ) {
    problems.add(new JaninoCompilationProblem(e)); // is this already handled?
} catch ( ParseException e ) {
    problems.add(new JaninoCompilationProblem(e)); // we know this isn't handled 
} catch ( IOException e ) {
    // I'm hoping the existing compiler problems handler catches these            
} catch ( CompileException e ) {
    // I'm hoping the existing compiler problems handler catches these
}
Show
Mark Proctor added a comment - sorry with better formatting this time: This is what I've added to JaninoJavaCompiler for now.
try {
    compiler.compile(resources);
} catch ( ScanException e ) {
    problems.add(new JaninoCompilationProblem(e)); // is this already handled?
} catch ( ParseException e ) {
    problems.add(new JaninoCompilationProblem(e)); // we know this isn't handled 
} catch ( IOException e ) {
    // I'm hoping the existing compiler problems handler catches these            
} catch ( CompileException e ) {
    // I'm hoping the existing compiler problems handler catches these
}
Hide
Arno Unkrig added a comment -

Ping JCI-53, waiting for reaction.

Show
Arno Unkrig added a comment - Ping JCI-53, waiting for reaction.
Hide
Matt Fowles added a comment -

This is a very old bug... I poked the people at https://issues.apache.org/jira/browse/JCI-53 to see if anything still needs to be done.

Show
Matt Fowles added a comment - This is a very old bug... I poked the people at https://issues.apache.org/jira/browse/JCI-53 to see if anything still needs to be done.
Hide
Matt Fowles added a comment -

I am closing this ticket as "overcome by events", also known as long dead

Show
Matt Fowles added a comment - I am closing this ticket as "overcome by events", also known as long dead

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: