This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Review of ProjectClassPathSupport | ||
---|---|---|---|
Product: | java | Reporter: | Tomas Zezula <tzezula> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | CLOSED FIXED | ||
Severity: | blocker | Keywords: | API_REVIEW_FAST |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 42309 | ||
Attachments: |
Diff
New diff of java module, the signature createPropertyBasedClassPathImplementation changed to take array of property names Final diff with resolved issues |
Description
Tomas Zezula
2005-01-06 13:07:50 UTC
Created attachment 19519 [details]
Diff
I've changed the signature of the ProjectClassPathSupport.createPropertyBasedClassPathImplementation (AntProjectHelper, PropertyEvaluator, Sring) to ProjectClassPathSupport.createPropertyBasedClassPathImplementation (AntProjectHelper, PropertyEvaluator, Sring[]) to remove another one implementation of the ClassPathImplementation in the j2ee project. Created attachment 19545 [details]
New diff of java module, the signature createPropertyBasedClassPathImplementation changed to take array of property names
apichanges.xml should use <class> and <issue> elements, and <api name="classpath"/> lowercase. I don't think the change to arch.xml is required. People wishing to see all API classes defined by the module can look at the Javadoc. There is nothing of special interest here. Copyright 2005. Rather than requiring an AntProjectHelper to be passed into the API, which is a pretty heavyweight object that also probably makes unit testing needlessly difficult, why not just pass in a File basedir? org.netbeans.modules.java.project should include the maj rel vers, /1. Javadoc is unclear on why propertyNames is an array. Are the values of all the named properties obtained and concatenated using File.pathSeparator? If so, say so. Missing @return tag on the factory method. Created attachment 19616 [details]
Final diff with resolved issues
Looks fine. Note that it would be possible to simplify the unit test to not create any project nor in fact write anything to disk at all - just pick some random dir as the basedir (like getWorkDirPath()) and use methods in PropertyUtils to make a simple in-memory evaluator. Then you can check the resultant ClassPath's entries (rather than roots), since you just care about URLs (the files need not really exist). Note also that the current unit test does not attempt to use archive files, only directories, as CP entries. Looks fine to me. Looks ok. Checking in java/j2seproject/src/org/netbeans/modules/java/j2seproject/classpath/ClassPathProviderImpl.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/classpath/ClassPathProviderImpl.java,v <-- ClassPathProviderImpl.java new revision: 1.15; previous revision: 1.14 done Removing java/j2seproject/src/org/netbeans/modules/java/j2seproject/classpath/ProjectClassPathImplementation.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/classpath/ProjectClassPathImplementation.java,v <-- ProjectClassPathImplementation.java new revision: delete; previous revision: 1.6 done Processing log script arguments... More commits to come... Checking in java/project/apichanges.xml; /cvs/java/project/apichanges.xml,v <-- apichanges.xml new revision: 1.4; previous revision: 1.3 done Checking in java/project/arch.xml; /cvs/java/project/arch.xml,v <-- arch.xml new revision: 1.11; previous revision: 1.10 done Processing log script arguments... More commits to come... Checking in java/project/nbproject/project.properties; /cvs/java/project/nbproject/project.properties,v <-- project.properties new revision: 1.11; previous revision: 1.10 done Checking in java/project/nbproject/project.xml; /cvs/java/project/nbproject/project.xml,v <-- project.xml new revision: 1.18; previous revision: 1.17 done Processing log script arguments... More commits to come... RCS file: /cvs/java/project/src/org/netbeans/spi/java/project/classpath/support/ProjectClassPathImplementation.java,v done Checking in java/project/src/org/netbeans/spi/java/project/classpath/support/ProjectClassPathImplementation.java; /cvs/java/project/src/org/netbeans/spi/java/project/classpath/support/ProjectClassPathImplementation.java,v <-- ProjectClassPathImplementation.java initial revision: 1.1 done RCS file: /cvs/java/project/src/org/netbeans/spi/java/project/classpath/support/ProjectClassPathSupport.java,v done Checking in java/project/src/org/netbeans/spi/java/project/classpath/support/ProjectClassPathSupport.java; /cvs/java/project/src/org/netbeans/spi/java/project/classpath/support/ProjectClassPathSupport.java,v <-- ProjectClassPathSupport.java initial revision: 1.1 Marking this issue as VERIFIED since the issue reporter == issue owner. |