[1523] in java-interest

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

Compiler error on array dimension

daemon@ATHENA.MIT.EDU (Robert Uomini)
Wed Sep 6 20:42:32 1995

Date: Wed, 6 Sep 1995 14:05:54 -0700
From: uomini@fractals.fractals.com (Robert Uomini)
To: java-interest@java.sun.com

Hi,

When I compile a Java application with the line

    StatsServer ms[2];

I get the following error:

javac StatsServer.java
StatsServer.java:46: Can't specify array dimension in a type expression.
    StatsServer ms[2];
                   ^
1 error


StatsServer is a class I define in the application. I hope this is a
compiler bug; I'd hate to think that I can't define an array of objects.

Bob

--
Robert Uomini
The Fractal Images Company (http://www.fractals.com)
Voice: 510-528-0258/800-548-0258
Fax:   510-528-0243
*******************************************************************************
*  Buying or selling a home? Come visit the most comprehensive set of	      *
*  residential real estate listings and related services on the Internet:     *
*  The FractalNet Real Estate Server, http://www.fractals.com/realestate.html *
*******************************************************************************


-
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