Opened 2 years ago

Closed 2 years ago

#1894 closed defect (fixed)

ant javadoc spills out errors

Reported by: echelon Owned by: zzz
Priority: minor Milestone: 0.9.29
Component: other Version: 0.9.28
Keywords: javadoc easy Cc:
Parent Tickets:

Description

ant javadoc shows 100 errors:

[javadoc] /usr/src/i2p/i2p.i2p/core/java/src/net/i2p/util/SystemVersion.java:152: error: bad use of '>'
[javadoc] * Better than (new VersionComparator?()).compare(System.getProperty("java.version"), "1.6") >= 0
[javadoc]
[javadoc] /usr/src/i2p/i2p.i2p/core/java/src/net/i2p/util/SystemVersion.java:162: error: bad use of '>'
[javadoc] * Better than (new VersionComparator?()).compare(System.getProperty("java.version"), "1.7") >= 0
[javadoc]

[javadoc] /usr/src/i2p/i2p.i2p/core/java/src/net/i2p/util/SystemVersion.java:196: error: bad use of '>'
[javadoc] * sun.arch.data.model == 64 => 64 bit processor
[javadoc]
[javadoc] /usr/src/i2p/i2p.i2p/core/java/src/net/i2p/util/SystemVersion.java:197: error: bad use of '>'
[javadoc] * sun.arch.data.model == 32 => A 32 bit JVM but could be either 32 or 64 bit processor or libs

Java Oracle
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot?(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)

Subtickets

Change History (3)

comment:1 Changed 2 years ago by zzz

  • Keywords easy added

Confirmed with Oracle Java on an RPi. OpenJDK does not show these errors. Javadocs are of course HTML so any non-HTML <> must be replaced with &lt;&gt;

comment:2 Changed 2 years ago by zzz

  • Milestone changed from undecided to 0.9.29
  • Status changed from new to accepted

comment:3 Changed 2 years ago by zzz

  • Resolution set to fixed
  • Status changed from accepted to closed

300 or so errors fixed in 0.9.28-4, 15 revs starting at 6f8e7637631c4cbb7eb3e76699a6941b88d31787
shouldn't be any errors left. Lots of warnings still. I am also updating our coding style doc on the website to add more info on javadocs.

Note: See TracTickets for help on using tickets.