velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 8651] - Error "is not a valid reference"
Date Thu, 02 May 2002 10:08:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8651>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8651

Error "is not a valid reference"





------- Additional Comments From jeff292@hotmail.com  2002-05-02 10:08 -------
Hi,
here is some sample code of the classes, I use:
This is the class, I want to use:

public class OW_Class extends OWB_Class implements OWI_Class {
    /**
     * OW_Class - Konstruktorkommentar.
     */
    public OW_Class() {
    	super();
   }
.
.
.
}

which is inherited by this Class:

abstract class OWB_Class extends OWB_AttributedObject  {
private static java.util.Hashtable LookUpTable = new  java.util.Hashtable();

public OWB_Class() {
	super();
}
.
.
.
}

Which is inerited by:
abstract class OWB_AttributedObject extends OWB_Object  {
public OWB_AttributedObject() {
	super();
}
public String getFullName() {
	Instance po = (Instance)getApplicationObject();
	if (po == null)
		return;
	return po.getName();
}
.
.
.
}

If I now want to invoke the "getFullName" method with an "OW_Class" Object, I 
get the error I described. If I inspect the class with Java Reflection inside 
the Velocity Macro, I get all the method names, including this sample method's 
name above.

--
To unsubscribe, e-mail:   <mailto:velocity-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-dev-help@jakarta.apache.org>


Mime
View raw message