• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unknown import!

 
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use

Java De-compiler
JD-GUI Version 0.3.3
JD-Core version 0.6.0



I download

1. jre-6u31-windows-i586-s.exe
2. jre-7u4-windows-i586-iftw.exe


I try to decompile rt.jar from both jre 6 & 7.
I got following info about vm.class when i try to read Integer.class from java.lang from both jre's
When jre7


when jre6


I very surprise about import [I;
Can any one explain me about it...i try to search in google...even i just download source code of jdk6 from openjdk.java.net & trying to find out about it.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't need to decompile rt.jar, because you already have the source code for it. It's in the file src.zip in your JDK installation directory.

"[I;" is the internal class name for int[] (int array). I don't know why your decompiler generates an import statement for that.
 
Mandar Khire
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jesper de Jong...
Sorry for late reply...

You don't need to decompile rt.jar


i know but when i download java decompiler & try to de-compile various files which allow to open in it.
I found .jar also decompile so i decompile rt.jar.

It's in the file src.zip in your JDK installation directory.


I have 2 jdk
1. jdk1.6.0_33
2. jdk1.7.0_02
By Winmerge version 2.12.4.0 i compare Integer.java files from both jdk source...

1 question.
What is use by adding huge code in between /* */? It just comment or really workable code?
example i see something like this.


2 question.
In


In jdk1.7.0_02

&

I not understand properly about both...though by adding if-else for 'len' it more accurate working,i think so...
but that 'reurn....' statement i not understand...little bit clue for it?

3 question.
Why remove code which appeare in older version

or it change more easy code as


4 question
What is benefit by changing

to


5 question.
Why change int low = -128; as static final in jdk1.7.0_02?

6 question.
what is difference between return statements?
1. return String.valueOf(value);
2. return toString(value);

7 question
Is () is very useful? Few times it seen that just add it in same line
eg 1.

just added ()

eg 2.

just added ()

Even i download source code from openjdk. But i not found internal class [I;
As

[I;" is the internal class name for int[] (int array).


Sorry for lots of question is not relate with subject name..but it come infront of me by just started by 1st post..so i ask here...
I know lot to study for understand jdk properly but it just start for me...so i take Integer.java.
reply
    Bookmark Topic Watch Topic
  • New Topic