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.

Bug 247351 - Default platform reports canonical bootclasspath roots
Summary: Default platform reports canonical bootclasspath roots
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 08:48 UTC by Svata Dedic
Modified: 2015-08-07 01:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2014-09-22 08:48:26 UTC
During debugging of CachingArchiveProvider, I've discovered hat while classpath entries for which CachingArchives are to be created use canonical paths, the JavPlatform's install folders use paths that were not cannonicalized.

Because of this differency, ct.sym is not always properly used instead of rt.jar (project uses default platform, the default platform provides cannonical bcp entries, each entry is then tested whether it resides underneath a report JDK install folder, which gives false).

According to offline discussion, the default platform BCP should be de-cannonicalized (path prefixes replaced for install folder) if the reported jar locations are outside of the JDK root dir.

Setup on my machine is:

/space/jdk_{java_version} -- real install folders 
/space/jdk/{6,7,8} -- symlinks to the newest patch for the appropriate JDK release. 

I usually setup Platforms using the symlinked dirs and even NetBeans runs using "symlinked" JDK path.
Comment 1 Tomas Zezula 2015-08-05 16:25:28 UTC
Unresolved ct.sym may be a big problem as the ct.sym contains info about profiles and release.
Comment 2 Tomas Zezula 2015-08-06 10:49:15 UTC
Fixed jet-main 2ba1223aac15
Comment 3 Quality Engineering 2015-08-07 01:17:00 UTC
Integrated into 'main-silver', will be available in build *201508070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2ba1223aac15
User: Tomas Zezula <tzezula@netbeans.org>
Log: #247351:Default platform reports canonical bootclasspath roots