Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.1.002
    • Fix Version/s: 4.3.0.000, 4.2.1.003
    • Labels:
      None

      Description

      Repro:

      function f(raiseException){
      	try {
      		return "in try";
      	}
      	catch (any e){
      		return "exception caught";
      	}
      	finally {
      		return "finally executed";
      	}
      }
      
      f();
      

      Error:

      Railo 4.2.1.002 Error (java.lang.StackOverflowError)
      Message	java.lang.StackOverflowError
      Cause	java.lang.StackOverflowError
      Java Stacktrace	java.lang.StackOverflowError 
       	at org.objectweb.asm.Label.a(Unknown Source):-1 
       	at org.objectweb.asm.MethodWriter.visitLabel(Unknown Source):-1 
       	at org.objectweb.asm.commons.GeneratorAdapter.mark(Unknown Source):-1 
       	at railo.transformer.bytecode.BytecodeContext.visitLineNumber(BytecodeContext.java:218):218 
       	at railo.transformer.bytecode.util.ExpressionUtil.visitLine(ExpressionUtil.java:83):83 
       	at railo.transformer.bytecode.util.ExpressionUtil.visitLine(ExpressionUtil.java:64):64 
       	at railo.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:53):53 
       	at railo.transformer.bytecode.util.ExpressionUtil.writeOut(ExpressionUtil.java:129):129 
       	at railo.transformer.bytecode.BodyBase.writeOut(BodyBase.java:170):170 
       	at railo.transformer.bytecode.BodyBase.writeOut(BodyBase.java:122):122 
       	at railo.transformer.bytecode.BodyBase._writeOut(BodyBase.java:115):115 
       	at railo.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:54):54 
       	at railo.transformer.bytecode.statement.TryCatchFinally._writeOutFinally(TryCatchFinally.java:194):194 
       	at railo.transformer.bytecode.statement.TryCatchFinally.access$0(TryCatchFinally.java:173):173 
       	at railo.transformer.bytecode.statement.TryCatchFinally$1.writeOut(TryCatchFinally.java:153):153 
       	at railo.transformer.bytecode.statement.Return._writeOut(Return.java:61):61 
      [etc]
      

      Low impact for me as I was simply testing how Railo handled it, rather than it being in code that's important to me.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: