From 35b96aaaa18bc90c870c58fd17c2081ff1bb7822 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 7 Feb 1999 19:37:32 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@216 379699f6-c40d-0410-875b-85095c16579e --- jode/test/OptimizeTest.java | 28 +++++++++++----------------- jode/test/TryCatch.java | 5 ++++- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/jode/test/OptimizeTest.java b/jode/test/OptimizeTest.java index eb57b85..6229d6d 100644 --- a/jode/test/OptimizeTest.java +++ b/jode/test/OptimizeTest.java @@ -43,24 +43,18 @@ public class OptimizeTest { System.err.println("result: "+(g++ + sideInline(g) + g++) + "g: "+g); longInline("Hallo", 3); System.err.println("result:"+ - (g++ + jode.test.inline.InlineTest - .difficultSideInline(this, g) - + g++) + "g: "+g); - System.err.println("result:"+ - (g++ + jode.inline.InlineTest - .difficultSideInline(this, g) - + g++) + "g: "+g); - System.err.println("result:"+ - (g++ + jode.InlineTest + (g++ + jode.test.InlineTest .difficultSideInline(this, g) + g++) + "g: "+g); + // This was a check which methods are inlined. The result: + // Only methods in the same package or in sub packages. +// System.err.println("result:"+ +// (g++ + jode.test.inline.InlineTest +// .difficultSideInline(this, g) +// + g++) + "g: "+g); +// System.err.println("result:"+ +// (g++ + jode.InlineTest +// .difficultSideInline(this, g) +// + g++) + "g: "+g); } } - - - - - - - - diff --git a/jode/test/TryCatch.java b/jode/test/TryCatch.java index 367b27e..8b4ab1c 100644 --- a/jode/test/TryCatch.java +++ b/jode/test/TryCatch.java @@ -35,6 +35,7 @@ class TryCatch { foo(); a = 2; simple(); + a = (a=4) / (a=0); a = 3; localsInCatch(); a = 4; @@ -129,7 +130,9 @@ class TryCatch { if (simple() < 2) break; else if (simple() < 3) - return; + foo(); + else + return; } System.out.println(); }