Actually AddressCache is a protected field in InetAddress class. It's loaded
via net.dll.
Here is the source code of InetAddress.java for your reference:
http://www.flex-compiler.lcs.mit.edu/Harpoon/srcdoc/java/net/InetAddress.html
You can see the line number 106 and many other lines where AddressCache is
used. I was able to compile and run my code using AddressCache in vj++ for
years. Now it doesn't work in vj#!!!
Will anyone from Microsoft clarify how java.net.InetAddress is implement in
vj#? Is it exactly same as vj++ and sun jdk1.1.4? It had many bugs like:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4193642
Are those bugs carried over to vj#?
Regards
Babu
> > In my project, I have a class(named java.net.DestroyAddress.java) that calls
> > AddressCache field from java.net.InetAddress class. I later found out that
[quoted text clipped - 9 lines]
>
> Jenn
Pete Loveall - 05 May 2005 15:38 GMT
I can tell you J# is implemented completely without reference to Microsoft's
(or anyone else's) JVM. I have reported (and have had accepted) two bug
reports on J# where they do not even support the basic API.
On the other hand, you are using a non-published (not in the API) protected
field in your code. While it may work under certain circumstances, there
are no guarantees that your code will work across JVM's. In fact, you can
safely assume your code won't work across JVM's if you consider clean-room
JVM's (which, essentially, is what J# is).
Pete Loveall
AME Corp.
> Actually AddressCache is a protected field in InetAddress class. It's
> loaded
>
> Will anyone from Microsoft clarify how java.net.InetAddress is implement
> in
> vj#? Is it exactly same as vj++ and sun jdk1.1.4? It had many bugs like: