473,766 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getDeclaredFiel ds() not returning full list on IBM JAVA SE5?

1 New Member
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)) and in both cases, get the following list returned from calling getDeclaredFiel ds() on java.lang.Class Loader via this code snippet:

Field[] fields = loaderClass.get DeclaredFields( );
for (int i = 0; i < fields.length; i++) {
System.out.prin tln("fieldName = " + fieldName);
}

fieldName = private boolean java.lang.Class Loader.initiali zed
fieldName = private java.lang.Class Loader java.lang.Class Loader.parent
fieldName = private java.util.Hasht able java.lang.Class Loader.package2 certs
fieldName = java.security.c ert.Certificate[] java.lang.Class Loader.nocerts
fieldName = private java.util.Vecto r java.lang.Class Loader.classes
fieldName = private java.util.Set java.lang.Class Loader.domains
fieldName = private java.util.HashM ap java.lang.Class Loader.packages
fieldName = private static sun.misc.URLCla ssPath java.lang.Class Loader.bootstra pClassPath
fieldName = private static java.lang.Class Loader java.lang.Class Loader.scl
fieldName = private static boolean java.lang.Class Loader.sclSet
fieldName = private java.security.P rotectionDomain java.lang.Class Loader.defaultD omain
fieldName = private static java.util.Vecto r java.lang.Class Loader.loadedLi braryNames
fieldName = private static java.util.Vecto r java.lang.Class Loader.systemNa tiveLibraries
fieldName = private java.util.Vecto r java.lang.Class Loader.nativeLi braries
fieldName = private static java.util.Stack java.lang.Class Loader.nativeLi braryContext
fieldName = private static java.lang.Strin g[] java.lang.Class Loader.usr_path s
fieldName = private static java.lang.Strin g[] java.lang.Class Loader.sys_path s
fieldName = private boolean java.lang.Class Loader.defaultA ssertionStatus
fieldName = private java.util.Map java.lang.Class Loader.packageA ssertionStatus
fieldName = java.util.Map java.lang.Class Loader.classAss ertionStatus
fieldName = private boolean java.lang.Class Loader.initiali zed
fieldName = private java.lang.Class Loader java.lang.Class Loader.parent
fieldName = private java.util.Hasht able java.lang.Class Loader.package2 certs
fieldName = java.security.c ert.Certificate[] java.lang.Class Loader.nocerts
fieldName = private java.util.Vecto r java.lang.Class Loader.classes
fieldName = private java.util.Set java.lang.Class Loader.domains
fieldName = private java.util.HashM ap java.lang.Class Loader.packages
fieldName = private static sun.misc.URLCla ssPath java.lang.Class Loader.bootstra pClassPath
fieldName = private static java.lang.Class Loader java.lang.Class Loader.scl
fieldName = private static boolean java.lang.Class Loader.sclSet
fieldName = private java.security.P rotectionDomain java.lang.Class Loader.defaultD omain
fieldName = private static java.util.Vecto r java.lang.Class Loader.loadedLi braryNames
fieldName = private static java.util.Vecto r java.lang.Class Loader.systemNa tiveLibraries
fieldName = private java.util.Vecto r java.lang.Class Loader.nativeLi braries
fieldName = private static java.util.Stack java.lang.Class Loader.nativeLi braryContext
fieldName = private static java.lang.Strin g[] java.lang.Class Loader.usr_path s
fieldName = private static java.lang.Strin g[] java.lang.Class Loader.sys_path s
fieldName = private boolean java.lang.Class Loader.defaultA ssertionStatus
fieldName = private java.util.Map java.lang.Class Loader.packageA ssertionStatus
fieldName = java.util.Map java.lang.Class Loader.classAss ertionStatus

When I run the same code on AIX 5.2 with IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64
I get:
FieldName string = static java.lang.Class Loader java.lang.Class Loader.systemCl assLoader
FieldName string = private static java.lang.Class Loader java.lang.Class Loader.applicat ionClassLoader
FieldName string = private static boolean java.lang.Class Loader.initSyst emClassLoader
FieldName string = private long java.lang.Class Loader.vmRef
FieldName string = java.lang.Class Loader java.lang.Class Loader.parent
FieldName string = private java.lang.Objec t java.lang.Class Loader.assertio nLock
FieldName string = private boolean java.lang.Class Loader.defaultA ssertionStatus
FieldName string = private java.util.Map java.lang.Class Loader.packageA ssertionStatus
FieldName string = private java.util.Map java.lang.Class Loader.classAss ertionStatus
FieldName string = private java.util.Hasht able java.lang.Class Loader.genericR epository
FieldName string = private java.util.Hasht able java.lang.Class Loader.annotati onCache
FieldName string = private java.util.Hasht able java.lang.Class Loader.packages
FieldName string = private java.lang.Objec t java.lang.Class Loader.lazyInit Lock
FieldName string = private java.util.Hasht able java.lang.Class Loader.classSig ners
FieldName string = private java.util.Hasht able java.lang.Class Loader.packageS igners
FieldName string = private static java.security.c ert.Certificate[] java.lang.Class Loader.emptyCer tificates
FieldName string = private java.security.P rotectionDomain java.lang.Class Loader.defaultP rotectionDomain
FieldName string = private java.util.Hasht able java.lang.Class Loader.contexts

I'm actually searching for nativeLibraries and SystemNativeLib raries, which is present in the first instance and not the second. Is the IBM Java version organised differently?

Thanks
JW
Mar 2 '07 #1
0 3282

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2079
by: Marc Walgren | last post by:
Greetings I have an ASP application to enter reservations. There are multiple user security settings that require some users to have a restricted list of client in a drop list on a form. I constructed the following function: CREATE FUNCTION (@pUserId int)
3
966
by: Simon Harris | last post by:
I am trying to create a web service that returns a collection. It keeps complaining that I need to specifiy a default accessor. I have searched Google over and over for this - Lots of results, none of which really make full sense to me. I understand that this is related to serialization, and that I need to add default properties - Something about enabling the web service to reference each object in my collection by its index.
0
1417
by: colinhumber | last post by:
I'm having some issues with my full text indexes in MySQL 3.23.58. I'm using I have a table with a full text index on the 'content' column. There are some words that are returning results just fine but others that should return results aren't. For example, SELECT * FROM lift_content WHERE match(content) AGAINST('content') returns results just fine.
1
2386
by: fortepianissimo | last post by:
I have a simple xmlrpc server/client written in Python, and the client throws a list of lists to the server and gets back a list of lists. This runs without a problem. I then wrote a simple Java xmlrpc client and it calls the python server. But I can't figure out what type to cast the result (of type Object) to. The Java xmlrpc call is basically this: Object result = client.execute("MyFunction", params);
0
4090
by: anuptosh | last post by:
Hi, I have been trying to run the below example to get a Oracle Array as an output from a Java code. This is an example I have found on the web. But, the expected result is that the code should return me Array element type code 1, but it is returning me type code 12 and the array in a junk or unreadable format . Our environment is JDK 1.4, ojdbc14.jar and Oracle 8i Not able to find out what they problem is and am not able to change the...
3
1581
by: Jonathan Lukens | last post by:
I am in the last phase of building a Django app based on something I wrote in Java a while back. Right now I am stuck on how to return the matches of a regular expression as a list *at all*, and in particular given that the regex has a number of groupings. The only method I've seen that returns a list is .findall(string), but then I get back the groups as tuples, which is sort of a problem. Thank you, Jonathan
49
2904
by: aarklon | last post by:
Hi all, See:- http://www.cs.princeton.edu/introcs/faq/c2java.html for C vs Java in number crunching http://husnusensoy.blogspot.com/2006/06/c-vs-java-in-number-crunching.html
5
1744
by: Daniel | last post by:
Hi all, I have some questions regarding C#. I come from a Java background. I am using .NET 1.1. Please limit your answers to v 1.1, otherwise please state the version to which it applies to. 1) I have seen code like this: public void someMethod() { // code
0
10781
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10008
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9837
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7381
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.