473,749 Members | 2,402 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 3280

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

Similar topics

3
2078
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
963
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
1416
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
2384
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
1580
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
2895
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
10778
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
8997
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8833
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9568
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
9389
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...
1
9335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8257
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
6801
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
4881
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2218
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.