org.eclipse.jdt.core.JDTCompilerAdapter seems to find invalid Access restrictions [message #247631] |
Fri, 07 September 2007 04:10  |
Eclipse User |
|
|
|
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/tes ts/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/editor/editpolicies/edit/pa rser/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/vip er/uml2/vme/structure/classes/ui/parser/tests/UML2ValueSpeci ficationDisplayStringParserMultiplicityElementTest.java
(at line 19)
[javac] private static final Log logger =
LogFactory.getLog(UML2ValueSpecificationDisplayStringParserM ultiplicityElementTest.class);
[javac] ^^^^^^
[javac] The field
UML2ValueSpecificationDisplayStringParserMultiplicityElement Test.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/vip er/uml2/vme/structure/classes/ui/parser/tests/UML2ValueSpeci ficationDisplayStringParserValueSpecificationTest.java
(at line 19)
[javac] private static final Log logger =
LogFactory.getLog(UML2ValueSpecificationDisplayStringParserV alueSpecificationTest.class);
[javac] ^^^^^^
[javac] The field
UML2ValueSpecificationDisplayStringParserValueSpecificationT est.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/tes ts/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/tes ts/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/tes ts/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/tes ts/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/tes ts/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)
|
|
|
Re: org.eclipse.jdt.core.JDTCompilerAdapter seems to find invalid Access restrictions [message #247665 is a reply to message #247631] |
Fri, 07 September 2007 10:03  |
Eclipse User |
|
|
|
Alexander Nyßen a écrit :
> 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?
Could you please open a bug report against JDT/Core with steps to
reproduce (build id, test case, ...)?
It would be nice if you could attach a xml log of your compilation. In
order to get an xml log use the compilerarg nested element in the javac
ant task.
Once we have all required information, we will investigate it.
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.02438 seconds