472,958 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 software developers and data experts.

getDeclaredFields() not returning full list on IBM JAVA SE5?

1
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 getDeclaredFields() on java.lang.ClassLoader via this code snippet:

Field[] fields = loaderClass.getDeclaredFields();
for (int i = 0; i < fields.length; i++) {
System.out.println("fieldName = " + fieldName);
}

fieldName = private boolean java.lang.ClassLoader.initialized
fieldName = private java.lang.ClassLoader java.lang.ClassLoader.parent
fieldName = private java.util.Hashtable java.lang.ClassLoader.package2certs
fieldName = java.security.cert.Certificate[] java.lang.ClassLoader.nocerts
fieldName = private java.util.Vector java.lang.ClassLoader.classes
fieldName = private java.util.Set java.lang.ClassLoader.domains
fieldName = private java.util.HashMap java.lang.ClassLoader.packages
fieldName = private static sun.misc.URLClassPath java.lang.ClassLoader.bootstrapClassPath
fieldName = private static java.lang.ClassLoader java.lang.ClassLoader.scl
fieldName = private static boolean java.lang.ClassLoader.sclSet
fieldName = private java.security.ProtectionDomain java.lang.ClassLoader.defaultDomain
fieldName = private static java.util.Vector java.lang.ClassLoader.loadedLibraryNames
fieldName = private static java.util.Vector java.lang.ClassLoader.systemNativeLibraries
fieldName = private java.util.Vector java.lang.ClassLoader.nativeLibraries
fieldName = private static java.util.Stack java.lang.ClassLoader.nativeLibraryContext
fieldName = private static java.lang.String[] java.lang.ClassLoader.usr_paths
fieldName = private static java.lang.String[] java.lang.ClassLoader.sys_paths
fieldName = private boolean java.lang.ClassLoader.defaultAssertionStatus
fieldName = private java.util.Map java.lang.ClassLoader.packageAssertionStatus
fieldName = java.util.Map java.lang.ClassLoader.classAssertionStatus
fieldName = private boolean java.lang.ClassLoader.initialized
fieldName = private java.lang.ClassLoader java.lang.ClassLoader.parent
fieldName = private java.util.Hashtable java.lang.ClassLoader.package2certs
fieldName = java.security.cert.Certificate[] java.lang.ClassLoader.nocerts
fieldName = private java.util.Vector java.lang.ClassLoader.classes
fieldName = private java.util.Set java.lang.ClassLoader.domains
fieldName = private java.util.HashMap java.lang.ClassLoader.packages
fieldName = private static sun.misc.URLClassPath java.lang.ClassLoader.bootstrapClassPath
fieldName = private static java.lang.ClassLoader java.lang.ClassLoader.scl
fieldName = private static boolean java.lang.ClassLoader.sclSet
fieldName = private java.security.ProtectionDomain java.lang.ClassLoader.defaultDomain
fieldName = private static java.util.Vector java.lang.ClassLoader.loadedLibraryNames
fieldName = private static java.util.Vector java.lang.ClassLoader.systemNativeLibraries
fieldName = private java.util.Vector java.lang.ClassLoader.nativeLibraries
fieldName = private static java.util.Stack java.lang.ClassLoader.nativeLibraryContext
fieldName = private static java.lang.String[] java.lang.ClassLoader.usr_paths
fieldName = private static java.lang.String[] java.lang.ClassLoader.sys_paths
fieldName = private boolean java.lang.ClassLoader.defaultAssertionStatus
fieldName = private java.util.Map java.lang.ClassLoader.packageAssertionStatus
fieldName = java.util.Map java.lang.ClassLoader.classAssertionStatus

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.ClassLoader java.lang.ClassLoader.systemClassLoader
FieldName string = private static java.lang.ClassLoader java.lang.ClassLoader.applicationClassLoader
FieldName string = private static boolean java.lang.ClassLoader.initSystemClassLoader
FieldName string = private long java.lang.ClassLoader.vmRef
FieldName string = java.lang.ClassLoader java.lang.ClassLoader.parent
FieldName string = private java.lang.Object java.lang.ClassLoader.assertionLock
FieldName string = private boolean java.lang.ClassLoader.defaultAssertionStatus
FieldName string = private java.util.Map java.lang.ClassLoader.packageAssertionStatus
FieldName string = private java.util.Map java.lang.ClassLoader.classAssertionStatus
FieldName string = private java.util.Hashtable java.lang.ClassLoader.genericRepository
FieldName string = private java.util.Hashtable java.lang.ClassLoader.annotationCache
FieldName string = private java.util.Hashtable java.lang.ClassLoader.packages
FieldName string = private java.lang.Object java.lang.ClassLoader.lazyInitLock
FieldName string = private java.util.Hashtable java.lang.ClassLoader.classSigners
FieldName string = private java.util.Hashtable java.lang.ClassLoader.packageSigners
FieldName string = private static java.security.cert.Certificate[] java.lang.ClassLoader.emptyCertificates
FieldName string = private java.security.ProtectionDomain java.lang.ClassLoader.defaultProtectionDomain
FieldName string = private java.util.Hashtable java.lang.ClassLoader.contexts

I'm actually searching for nativeLibraries and SystemNativeLibraries, 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 3205

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

Similar topics

3
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...
3
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,...
0
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...
1
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...
0
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...
3
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...
49
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
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. ...
0
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...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.