Bug 243361 - [compiler] different behaviour from javac (sdk1.6.0_7) and eclipse-java-compiler
Summary: [compiler] different behaviour from javac (sdk1.6.0_7) and eclipse-java-compiler
Status: VERIFIED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M4   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 15:26 EDT by Thomas Bogner CLA
Modified: 2008-12-08 22:05 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Bogner CLA 2008-08-06 15:26:55 EDT
Build ID:  M20071023-1652

Steps To Reproduce:
1.import com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException; in java-file
2. in eclipse class-file is build without any error/warning.
3. compiling with javac fails with:
ic.java:1: package com.sun.xml.internal.ws.wsdl.parser does not exist
import com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException;


More information:
com.sun.xml.internal.ws.wsdl.parser.InaccessibleWSDLException is located in rt.jar but it is only for internal use in java runtime, so the error reported from javac is correct. why doesnt eclipse recognise this.
Comment 1 Kent Johnson CLA 2008-08-08 11:58:28 EDT
The error reported by javac is not part of the compiler spec.

It is a proprietary error that Sun has chosen to 'protect' their internal code, much like the warning javac issues for :

import com.sun.corba.se.spi.activation.LocatorOperations;

X.java:1: warning: com.sun.corba.se.spi.activation.LocatorOperations is Sun prop
rietary API and may be removed in a future release
Comment 2 Kent Johnson CLA 2008-11-10 09:29:58 EST
Closing since this is a Sun specific error message & is not covered by the Compiler spec.
Comment 3 Jerome Lanneluc CLA 2008-12-08 05:19:58 EST
Reopen to assign
Comment 4 Jerome Lanneluc CLA 2008-12-08 05:20:52 EST
(In reply to comment #2)
> Closing since this is a Sun specific error message & is not covered by the
> Compiler spec.
> 

Comment 5 Olivier Thomann CLA 2008-12-08 22:05:57 EST
Verified for 3.5M4 using I20081208-1800