[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] org.eclipse.jdt.core.JDTCompilerAdapter seems to find invalid Access restrictions

Hallo,

I am currently using the org.eclipse.jdt.core.JDTCompilerAdapter in a feature-based headless build of an RCP product. The build log shows a couple of access restrictions (forbidden references), which actually do not exist and which only occur in the headless build. If I compile the projects inside Eclipse (without using Ant), there are no forbidden references (I ensured that I set the compiler option to report errors in this case). I attached the output of the headless build regarding one of the classes below. Did I find a bug in the JDTCompilerAdapter or am I doing something wrong?

Alexander

[javac] [completed /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.vmf.ui.tests/src/sc/viper/vmf/ui/editor/tests/AbstractDiagramEditorUITest.java - #10/10]
[javac] [10 units compiled]
[javac] [29 .class files generated]
[javac] ----------
[javac] 1. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 103)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 2. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 111)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 3. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 119)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 4. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 127)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 5. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 135)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 6. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 143)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 7. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 151)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 8. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 159)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] 9. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/editor/editpolicies/edit/parser/tests/UML2OwnedAttributeDirectEditLabelParserTest.java (at line 167)
[javac] Property property = parser.Property();
[javac] ^^^^^^^^
[javac] The local variable property is never read
[javac] ----------
[javac] ----------
[javac] 10. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/parser/tests/UML2ValueSpecificationDisplayStringParserMultiplicityElementTest.java (at line 19)
[javac] private static final Log logger = LogFactory.getLog(UML2ValueSpecificationDisplayStringParserMultiplicityElementTest.class);
[javac] ^^^^^^
[javac] The field UML2ValueSpecificationDisplayStringParserMultiplicityElementTest.logger is never read locally
[javac] ----------
[javac] ----------
[javac] 11. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.uml2.vme.structure.classes.tests/src/sc/viper/uml2/vme/structure/classes/ui/parser/tests/UML2ValueSpecificationDisplayStringParserValueSpecificationTest.java (at line 19)
[javac] private static final Log logger = LogFactory.getLog(UML2ValueSpecificationDisplayStringParserValueSpecificationTest.class);
[javac] ^^^^^^
[javac] The field UML2ValueSpecificationDisplayStringParserValueSpecificationTest.logger is never read locally
[javac] ----------
[javac] ----------
[javac] 12. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.vmf.ui.tests/src/sc/viper/vmf/ui/editor/tests/AbstractDiagramEditorUITest.java (at line 16)
[javac] import org.eclipse.emf.common.ui.URIEditorInput;
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] Access restriction: The type URIEditorInput is not accessible due to restriction on classpath entry /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/org.eclipse.emf.common.ui/common.ui.jar
[javac] ----------
[javac] 13. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.vmf.ui.tests/src/sc/viper/vmf/ui/editor/tests/AbstractDiagramEditorUITest.java (at line 29)
[javac] import org.eclipse.ui.ide.IDE;
[javac] ^^^^^^^^^^^^^^^^^^^^^^
[javac] Access restriction: The type IDE is not accessible due to restriction on classpath entry /home/viper/build_workspace/sc.viper.ide.releng/base/plugins/org.eclipse.ui.ide_3.3.0.I20070620.jar
[javac] ----------
[javac] 14. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.vmf.ui.tests/src/sc/viper/vmf/ui/editor/tests/AbstractDiagramEditorUITest.java (at line 136)
[javac] IEditorInput editorInput = new URIEditorInput(graphModelResourceURI) {
[javac] ^^^^^^^^^^^^^^
[javac] Access restriction: The type URIEditorInput is not accessible due to restriction on classpath entry /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/org.eclipse.emf.common.ui/common.ui.jar
[javac] ----------
[javac] 15. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.vmf.ui.tests/src/sc/viper/vmf/ui/editor/tests/AbstractDiagramEditorUITest.java (at line 149)
[javac] return IDE.openEditor(page, editorInput, getEditorId());
[javac] ^^^
[javac] Access restriction: The type IDE is not accessible due to restriction on classpath entry /home/viper/build_workspace/sc.viper.ide.releng/base/plugins/org.eclipse.ui.ide_3.3.0.I20070620.jar
[javac] ----------
[javac] 16. WARNING in /home/viper/build_workspace/sc.viper.ide.releng/build/ViPER/plugins/sc.viper.vmf.ui.tests/src/sc/viper/vmf/ui/editor/tests/AbstractDiagramEditorUITest.java (at line 149)
[javac] return IDE.openEditor(page, editorInput, getEditorId());
[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[javac] Access restriction: The method openEditor(IWorkbenchPage, IEditorInput, String) from the type IDE is not accessible due to restriction on classpath entry /home/viper/build_workspace/sc.viper.ide.releng/base/plugins/org.eclipse.ui.ide_3.3.0.I20070620.jar
[javac] ----------
[javac] 16 problems (16 warnings)