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 243584 - Some methods throw IllegalAccessException while unit testing with Java 8.
Summary: Some methods throw IllegalAccessException while unit testing with Java 8.
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: NB JUnit (show other bugs)
Version: 8.0
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: JDK_8
Depends on:
Blocks:
 
Reported: 2014-04-05 00:41 UTC by attila.kelemen
Modified: 2015-09-14 12:49 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 attila.kelemen 2014-04-05 00:41:58 UTC
Attempting to call the following methods while unit testing using Java 8 results in an IllegalAccessException thrown:

- NbPreferences.forModule
- JavaPlatform.getDefault

To reproduce the issue, please run the tests for `EmptyProjectTest` in https://github.com/kelemen/netbeans-gradle-project

These methods work when running in normal context.
Comment 1 Martin Kozeny 2014-04-05 07:52:08 UTC
Hopefully reassigning to default owner.