typiconman / ponomar

Ponomar: a liturgics suite for the Orthodox Church
http://www.ponomar.net/
GNU General Public License v3.0
37 stars 12 forks source link

Compilation errors #12

Closed pantlmn closed 3 years ago

pantlmn commented 8 years ago

I'm trying to install ponomar, but the attempt fails :-(

$ sudo make
Password:
javac -g Ponomar/OrderedHashtable.java
Note: Ponomar/OrderedHashtable.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/DocHandler.java
javac -g Ponomar/QDParser.java
Note: Ponomar/QDParser.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/Reporter.java
javac -g Ponomar/parseConvert.java
javac -g Ponomar/StringOp.java
javac -g Ponomar/LanguagePack.java
Note: ./Ponomar/Helpers.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/JDate.java
Note: Ponomar/JDate.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
javac -g Ponomar/Paschalion.java
Note: Ponomar/Paschalion.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/DoSaint1.java
Note: Ponomar/DoSaint1.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/Sunrise.java
javac -g Ponomar/JDaySelector.java
Note: Ponomar/JDaySelector.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/JCalendar.java
javac -g Ponomar/Languagizer.java
Note: Ponomar/Languagizer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/Commemoration.java
Note: Ponomar/Commemoration.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/ReadText.java
javac -g Ponomar/Database.java
Note: ./Ponomar/Days.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/Fasting.java
javac -g Ponomar/DivineLiturgy1.java
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/Primes.java
Note: ./Ponomar/ServiceInfo.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac -g Ponomar/RoyalHours.java
javac -g Ponomar/UsualBeginning.java
javac -g Ponomar/ThirdHour.java
javac -g Ponomar/SixthHour.java
javac -g Ponomar/NinthHour.java
javac -g Ponomar/Main.java
Note: Ponomar/Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

I can run the program by java Ponomar.Main, it shows the icon of the Savoiur, the calendar, but no functionality.

$ java -showversion
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

System Version: OS X 10.8.2

If I try to recompile it with -Xlint, as recommended above, following errors appear:

$ sudo javac -g -Xlint Ponomar/OrderedHashtable.java
Ponomar/OrderedHashtable.java:94: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Hashtable
        Object toReturn = super.put(key,value);
                                   ^
Ponomar/OrderedHashtable.java:97: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.Vector
            this.mSerialOrder.add(key);
                                 ^
Ponomar/OrderedHashtable.java:40: warning: [serial] serializable class Ponomar.OrderedHashtable has no definition of serialVersionUID
public class OrderedHashtable extends Hashtable implements Cloneable
       ^
3 warnings

Am I doing something wrong?

typiconman commented 3 years ago

Actually, it does not fail, it just issues a number of warnings.