Results 1 to 4 of 4
  1. #1
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Java Disassembler

    Java Code:
    class Gen<T>{
    	
    	T t;
    	Gen(T t){this.t = t;}
    	T getObj(){
    	return t;
    	}
    
    }
    It should give output like :
    Java Code:
    class Gen extends java.lang.Object{
    java.lang.Object t;
    Gen(java.lang.Object);
    java.lang.Object getObj();
    }
    But it gives :
    Java Code:
    C:\Users\Mohammad Allaudin\Desktop>javap  Gen
    Compiled from "gen.java"
    class Gen<T> {
      T t;
      Gen(T);
      T getObj();
    }
    Whats wrong with this ?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Java Disassembler

    Why do you think it should give the first output?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    allaudin's Avatar
    allaudin is offline Senior Member
    Join Date
    Apr 2013
    Posts
    271
    Rep Power
    0

    Default Re: Java Disassembler

    I wrote this code and output form book (Java Complete Reference) thats why ..

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Java Disassembler

    I'm not sure what the book says, but I get the same output as you.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Java disassembler
    By gyijhbk in forum New To Java
    Replies: 7
    Last Post: 05-01-2012, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •