Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Following code says better about bug
File tempFile = File.createTempFile("xdoclet2", "");
FileWriter writer = new FileWriter(tempFile);
writer.write("package org.generama.tests;\n" +
"\n" +
"import java.net.URL;\n" +
"\n" +
"/**\n" +
" * @author Anatol Pomozov\n" +
" */\n" +
"public class TestClass
");
writer.close();
JavaDocBuilder builder = new JavaDocBuilder();
builder.addSource(tempFile);
JavaClass klass = builder.getClassByName("TestClass");
URL url = javaClass.getSource().getURL();
//url is null!!! It is bug. url should point on file.
Activity
Dennis Lundberg
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Cannot Reproduce [ 5 ] |
Sorry seems that is not a bug, at least not that bug that I thought.
JavaClass klass = builder.getClassByName("TestClass");
sould be JavaClass klass = builder.getClassByName("org.generama.tests.TestClass");
Class "TestClass" does not exists. so builder should not return class right??