473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 3238

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.