error: cannot find symbol

Using the Java SDK with TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
jon80
Posts: 24
Joined: Thu May 28, 2009 10:03 am

error: cannot find symbol

Post by jon80 »

The following does not compile within TextPad 5.4.2, and, the support team commonly tells me that they do not support these issues, so I write them here. I cannot force them to understand a bug if they do not want to listen.

It works within Eclipse.

Code: Select all

Dog.java
package one;
class Dog
{
	public Dog() { count++;}
	public short getNumberOfDogs() {return this.count;}
	public static short count;

	public static void main (String[] args) {}
}

TestOne.java
package one;
public class TestOne
{
	public static void main (String[] args)
	{
		Dog[] d = new Dog[5];
		for (int i = 0; i < 5; i++)
		{
			d[i] = new Dog();
		}
	}
}
Jon
Post Reply