ClassFileAnalyzer (Can) |
Home |
Example: TestCanDeprecatedTest directive
/* TestCanDeprecated.java */ /** * @deprecated TestCanDeprecated marked deprecated. */ public class TestCanDeprecated { @Deprecated private static final String sconst = "String marked deprecated"; @Deprecated public static void method1 () { System.out.println("method1 marked deprecated."); } }
> javac TestCanDeprecated.java > java ClassFileAnalyzer TestCanDeprecated.class
; TestCanDeprecated.j
; Generated by ClassFileAnalyzer (Can)
; Analyzer and Disassembler for Java class files
; (Jasmin syntax 2, http://jasmin.sourceforge.net)
;
; ClassFileAnalyzer, version 0.7.0
.bytecode 50.0
.source TestCanDeprecated.java
.class public TestCanDeprecated
.super java/lang/Object
.deprecated
.field private static final sconst Ljava/lang/String; = "String marked deprecated"
.deprecated
.annotation visible Ljava/lang/Deprecated;
.end annotation
.end field
.method public <init>()V
.limit stack 1
.limit locals 1
.line 7
0: aload_0
1: invokespecial java/lang/Object/<init>()V
4: return
.end method
.method public static method1()V
.limit stack 2
.limit locals 0
.line 12
0: getstatic java/lang/System/out Ljava/io/PrintStream;
3: ldc "method1 marked deprecated."
5: invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
.line 13
8: return
.deprecated
.annotation visible Ljava/lang/Deprecated;
.end annotation
.end method
|