🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8010

Re: Reflection

#8010
From: Joi Ellis [TeamB]
Date: Thu, 26 Apr 2001 02:08
17 lines
1444 bytes
Renato Fiche Junior <grade@nce.ufrj.br> wrote:
> Hi,

> How can i get a Class object reference that represents a primitive type??
> I have tried Class.forName("int"), but it doesn't work. A ClassNotFound
> exception is raised.

Well, by definition, a primitive type has no Class, it's built into the
language itself.  

Perhaps you're thinking of the Integer wrapper class instead?

-- 
Joi Ellis (TeamB) 
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <3ae78333_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeed.icl.net!dispose.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail
References: <3ae7826f_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9781dfce69adbdb3
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-04-25 19:28:08 PST
Message-ID: <3ae78333_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: Reflection
Newsgroups: borland.public.jbuilder.java.language
References: <3ae7826f_1@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 25 Apr 2001 19:08:51 -0700
X-Trace: dnews 988250931 209.46.41.66 (25 Apr 2001 19:08:51 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!newsfeed.icl.net!dispose.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews!not-for-mail