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(); }