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

Summary: Default platform reports canonical bootclasspath roots
Product: java Reporter: Svata Dedic <sdedic>
Component: PlatformAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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