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.

View | Details | Raw Unified | Return to bug 267830
Collapse All | Expand All

(-)a/java.source.base/src/org/netbeans/api/java/source/ClasspathInfo.java (-1 / +7 lines)
Lines 48-54 Link Here
48
import java.io.File;
48
import java.io.File;
49
import java.net.URI;
49
import java.net.URI;
50
import java.net.URISyntaxException;
50
import java.net.URISyntaxException;
51
import java.net.URL;
52
import java.util.ArrayList;
51
import java.util.ArrayList;
53
import java.util.Arrays;
52
import java.util.Arrays;
54
import java.util.List;
53
import java.util.List;
Lines 512-515 Link Here
512
            return cpInfo.memoryFileManager.unregister(fqn);
511
            return cpInfo.memoryFileManager.unregister(fqn);
513
        }
512
        }
514
    }
513
    }
514
515
    /** Interface for {@link Task}s that want to provide {@link ClasspathInfo}.
516
     * @since 2.16
517
     */
518
    public interface Provider {
519
        public ClasspathInfo getClasspathInfo ();
520
    }
515
}
521
}
(-)a/java.source.base/src/org/netbeans/modules/java/source/parsing/ClassParser.java (-2 / +2 lines)
Lines 100-107 Link Here
100
        final FileObject file = source.getFileObject();
100
        final FileObject file = source.getFileObject();
101
        assert file != null;
101
        assert file != null;
102
        if (info == null) {
102
        if (info == null) {
103
            if ((task instanceof ClasspathInfoProvider)) {
103
            if ((task instanceof ClasspathInfo.Provider)) {
104
                info =((ClasspathInfoProvider)task).getClasspathInfo();
104
                info =((ClasspathInfo.Provider)task).getClasspathInfo();
105
            }
105
            }
106
            if (info == null) {
106
            if (info == null) {
107
                ClassPath bootPath = ClassPath.getClassPath(file, ClassPath.BOOT);
107
                ClassPath bootPath = ClassPath.getClassPath(file, ClassPath.BOOT);
(-)a/java.source.base/src/org/netbeans/modules/java/source/parsing/ClasspathInfoProvider.java (-2 / +1 lines)
Lines 48-53 Link Here
48
 *
48
 *
49
 * @author Tomas Zezula
49
 * @author Tomas Zezula
50
 */
50
 */
51
public interface ClasspathInfoProvider {
51
public interface ClasspathInfoProvider extends ClasspathInfo.Provider {
52
    public ClasspathInfo getClasspathInfo ();
53
}
52
}
(-)a/jshell.support/src/org/netbeans/modules/jshell/project/JShellOptions2.java (-3 / +2 lines)
Lines 82-88 Link Here
82
import org.netbeans.api.project.SourceGroup;
82
import org.netbeans.api.project.SourceGroup;
83
import org.netbeans.modules.java.j2seproject.api.J2SECategoryExtensionProvider;
83
import org.netbeans.modules.java.j2seproject.api.J2SECategoryExtensionProvider;
84
import org.netbeans.modules.java.j2seproject.api.J2SECategoryExtensionProvider.ConfigChangeListener;
84
import org.netbeans.modules.java.j2seproject.api.J2SECategoryExtensionProvider.ConfigChangeListener;
85
//import org.netbeans.modules.java.source.parsing.ClasspathInfoProvider;
86
import org.netbeans.modules.jshell.project.RunOptionsModel.LoaderPolicy;
85
import org.netbeans.modules.jshell.project.RunOptionsModel.LoaderPolicy;
87
import org.netbeans.modules.parsing.api.ParserManager;
86
import org.netbeans.modules.parsing.api.ParserManager;
88
import org.netbeans.modules.parsing.api.ResultIterator;
87
import org.netbeans.modules.parsing.api.ResultIterator;
Lines 176-184 Link Here
176
            return;
175
            return;
177
        }
176
        }
178
        
177
        
179
        class UT extends UserTask /*implements ClasspathInfoProvider*/ {
178
        class UT extends UserTask implements ClasspathInfo.Provider {
180
179
181
//            @Override
180
            @Override
182
            public ClasspathInfo getClasspathInfo() {
181
            public ClasspathInfo getClasspathInfo() {
183
                return JShellOptions2.this.getClasspathInfo();
182
                return JShellOptions2.this.getClasspathInfo();
184
            }
183
            }

Return to bug 267830