Bug 548078 - Java 12 project using modules showing "The type ISO8583Message is not exported from this module" when class 'ISO8583Message' does not belong to that module but it is added from anather module(using 'requires iso8583').
Summary: Java 12 project using modules showing "The type ISO8583Message is not exporte...
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.11   Edit
Hardware: PC Windows 10
: P3 minor (vote)
Target Milestone: 4.13 M1   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2019-06-09 04:05 EDT by Krishna Telgave CLA
Modified: 2019-07-10 03:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krishna Telgave CLA 2019-06-09 04:05:51 EDT
Dear Sir,

	Java 12 project using modules showing "The type ISO8583Message is not exported from this module" when class 'ISO8583Message' does not belong to that module but it is added from anather module(using 'requires iso8583').
	


-- Configuration Details --
Product: Eclipse IDE 4.11.0.20190314-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.jdt 3.17.0.v20190307-0500
Versioning Plugin:
 org.eclipse.platform 4.11.0.v20190307-0500
Comment 1 Stephan Herrmann CLA 2019-06-09 07:18:13 EDT
Why do you believe this is a bug?

Can you provide an example project demonstrating the problem?

The message you show is designed to alert you, when a public API of your module mentions a type that is not accessible to clients of your API (an "API leak").

As you mention "is added from another module (using 'requires...')" you should check:
- is the package containing ISO8383Message exported from its module?
- your module should probably use 'requires transitive' instead of just 'requires'
Comment 2 Stephan Herrmann CLA 2019-06-18 17:25:41 EDT
There's nothing we can do without further information. I assume all is working as designed.
Comment 3 Jay Arthanareeswaran CLA 2019-07-10 03:34:31 EDT
Verified for 4.13 M1 using build I20190709-1800