hs10222 / doclava

Automatically exported from code.google.com/p/doclava
Apache License 2.0
0 stars 0 forks source link

The method isEmpty() is undefined for the type String in class PackageInfo #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Switch to a Standard JVM
2. Try invoke the compilation
3. The compiler complains with following message:
/src/com/google/doclava/PackageInfo.java:[37,16] cannot find symbol
symbol  : method isEmpty()
location: class java.lang.String

What is the expected output? What do you see instead?
Use a standard way to perform the check, i.e. String#length() == 0

What version of the product are you using? On what operating system?
$ uname
Darwin Simone-Tripodis-MacBook-Pro.local 10.4.0 Darwin Kernel Version 10.4.0: 
Fri Apr 23 
18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386

$ java -version
java version "1.5.0_24"
Java(TM) 2 Runtime Environment, Standard Edition (build 
1.5.0_24-b02-357-10M3065)
Java HotSpot(TM) Client VM (build 1.5.0_24-149, mixed mode, sharing)

Please provide any additional information below.
The current javadoc doesn't report the isEmpty() method: 
http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html#length()

Original issue reported on code.google.com by simone.t...@gmail.com on 6 Nov 2010 at 10:47

GoogleCodeExporter commented 8 years ago
Doclava as written assumes a JDK version 6 (tested against Sun and OpenJDK). 
We'd have to do a more thorough check to see what other JDK6 features we use-- 
I think the override tags would be another issue.

Original comment by bjdod...@gmail.com on 16 Nov 2010 at 7:20

GoogleCodeExporter commented 8 years ago
switched to JDK6 and it works.

indeed, the @Override tag is another issue, I had to comment them to build 
doclava on my machine.

Original comment by simone.t...@gmail.com on 16 Nov 2010 at 8:02

GoogleCodeExporter commented 8 years ago
Switching to Java6, that's a requirement, the issue is resolved

Original comment by simone.t...@gmail.com on 17 Nov 2010 at 8:35