From be0597a2abeb507d363540220ce390716ff983b0 Mon Sep 17 00:00:00 2001 From: Richard Elkins Date: Thu, 28 Nov 2024 09:23:27 -0600 Subject: [PATCH] updated JACOBIN-0626-DumpObject-DumpStatics --- HISTORY.md | 1 + VERSION.txt | 2 +- .../main.java | 37 +++++++++++++++---- 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 52c7f93..8b7723f 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -4,6 +4,7 @@ This file is a version history of jacotest amendments. Entries appear in versio | `Date` | `Version` | `Contents` | | :------------: | :---: | :--- | |||| +| 2024-11-28 | 3.4.26 | Updated test case: JACOBIN-0626-DumpObject-DumpStatics. | | 2024-11-27 | 3.4.25 | New test case: JACOBIN-0626-DumpObject-DumpStatics. | | 2024-11-23 | 3.4.24 | New test case: ex-catch-plus-jj. | | 2024-11-22 | 3.4.23 | New test cases: elliptic-1 and elliptic-2. | diff --git a/VERSION.txt b/VERSION.txt index a1e27e4..753a7cf 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -v3.4.25 +v3.4.26 diff --git a/tests/JACOBIN-0626-DumpObject-DumpStatics/main.java b/tests/JACOBIN-0626-DumpObject-DumpStatics/main.java index f278d8b..a876fd7 100644 --- a/tests/JACOBIN-0626-DumpObject-DumpStatics/main.java +++ b/tests/JACOBIN-0626-DumpObject-DumpStatics/main.java @@ -1,11 +1,34 @@ public class main { + + private static int mainClassInt = 1; + private static final double mainClassDouble = 2.0; + private static String mainClassString = "three"; + public static void main(String[] args) { - MyClass myObject = new MyClass(); - jj._dumpObject(myObject, "My Title", 0); + int mainFunInt = 1; + final double mainFunDouble = 2.0; + String mainFunString = "three"; + + KlassKambing objKambing = new KlassKambing(); + System.out.println("=========================== jj._dumpObject(objKambing...) begin"); + jj._dumpObject(objKambing, "objKambing from KlassKambing", 0); + System.out.println("=========================== jj._dumpObject(objKambing...) end"); + + main objMain = new main(); + System.out.println("=========================== jj._dumpObject(objMain...) begin"); + jj._dumpObject(objMain, "Second main object", 0); + System.out.println("=========================== jj._dumpObject(objMain...) end"); + jj._dumpStatics("Statics Dump", 3, ""); - - } + + } + + private void fun() { + int funInt = 1; + double funDouble = 2.0; + String funString = "three"; + } } class jj { @@ -17,9 +40,9 @@ public static void _dumpObject(Object obj, String title, int indent) { } } -class MyClass { +class KlassKambing { int alaska = 1; - int Abraham = 2; - int aBEL = 3; + double Abraham = 2.0; + String aBEL = "three"; }