On 04/04/2018 09:11 AM, Glenn Holmer wrote:
> On 04/03/2018 06:08 PM, Efrem Mc wrote:
>> I went to an existing Java Application, and switched it from JDK8
>> (default) to JDK10.  I rebuild using Clean and Build....
>> I received no error message and was able to run the app without any errors.
> 
>> I am not sure these are the steps mention.  Please advise.
> 
> It was when starting the profiler, but this morning I tried again after
> deleting userdir, cache, and sample project, and couldn't reproduce it.
> I'm assuming it had to do with changing source level and JDK version
> repeatedly during testing.

No wait, I just triggered it three times in a row. In the profiler test
spec, do test suite 8 (Profiling Points), test case 1 (Stopwatch and
Reset Results) under JDK 10. I see this on step 14, when the Anagram
class is selected. Message is:

Even though the source level of
/home/cenbe/NetBeansProjects/AnagramGame/src:/home/cenbe/NetBeansProjects/AnagramGame/test
is set to: 1.6, java.lang.AssertionError cannot be found on the
bootclasspath:
Changing source level to 1.3

This is with the AnagramGame project's source level set to JDK 6 (which
it defaults to). Setting it to JDK 10 gives the following:

Even though the source level of
/home/cenbe/NetBeansProjects/AnagramGame/test:/home/cenbe/NetBeansProjects/AnagramGame/src
is set to: 10, java.lang.AssertionError cannot be found on the
bootclasspath:
Changing source level to 1.3
Even though the source level of
/home/cenbe/NetBeansProjects/AnagramGame/test:/home/cenbe/NetBeansProjects/AnagramGame/src
is set to: 10, java.util.zip.CRC32C cannot be found on the system module
path:
Changing source level to 1.8
Even though the source level of
/home/cenbe/NetBeansProjects/AnagramGame/test:/home/cenbe/NetBeansProjects/AnagramGame/src
is set to: 10, java.util.zip.CRC32C cannot be found on the system module
path:
Changing source level to 1.8

>>> On Tue, Apr 3, 2018 at 5:33 PM, Glenn Holmer <ce...@kolabnow.com> wrote:
>>>> I'm also seeing this for java.lang.AssertionError (when starting the
>>>> profiler against the Anagram Game sample project under JDK 10), with a
>>>> message saying "Changing source level to 1.3" (looks like lines 970-977
>>>> of JavacParser).

-- 
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to