[2099] in java-interest

home help back first fref pref prev next nref lref last post

ObjectScope equivalent in JDK?

daemon@ATHENA.MIT.EDU (Simon Spero)
Mon Sep 25 04:46:50 1995

Date: Mon, 25 Sep 1995 01:49:03 -0400 (EDT)
From: Simon Spero <ses@tipper.oit.unc.edu>
To: java-interest@java.sun.com
In-Reply-To: <9509250048.AA11759@spy.org>


Is there anyway to get some of the functionality of ObjectScope in JDK? 
More specifically, is  there an easy way to access a slot by index rather 
than by compiled in name? 

The reason I want to do this is that I'm in the middle of knocking up a 
quick ASN.1/{BER,PER} compiler for Java; I'd like to be able to use a 
table based approach for at least some types. In most C implementations, 
the offset a given slot can be found through pointer hackery - in java, 
this is not possible. 

I guess I could always generate a method to set/get fields by index, but 
this would have to be done for every single type, and is kind of icky - 
is there another way that doesn't involve dynamic generation of VM code 
for ClassLoader?

Simon

Contract with America - Explained!			|Phone: 415-617-1251
Contract: verb						|Mail: ses@unc.edu
1) To shrink or reduce in size - the economy contracted +-----------------------
2) To become infected -My baby contracted pneumonia when they stopped my welfare

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post