Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
duplicate class compile error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

duplicate class compile error



Hello,
I am pulling out my hair over a "duplicate class" error. This is the output:

"JavaCompile.default <CompileJavaDebug>ContractIT.app
/Users/pebo/Documents/ContractIT/./peboCI/TimerListener.java:3: duplicate
class: pebo.CI.TimerListener
public class TimerListener{"

This is the file in it's entirety:
package pebo.CI;

public class TimerListener{
private int hours;
TimerListener(int hours){this.hours=hours;}
public void setHours(int hours){this.hours=hours;}
}

I have never encountered this type of error before. A batch find in the
project does not reveal any other declarations of a class of the same name.
What's up?

TIA,
Peter Bonnell




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.