[ 
https://issues.apache.org/jira/browse/NETBEANS-5532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17314319#comment-17314319
 ] 

Geertjan Wielenga commented on NETBEANS-5532:
---------------------------------------------

I was using 12.4 Beta 1, which doesn't exist yet, but you can try it out:

https://lists.apache.org/thread.html/r899bc729870651b46a7891003c46430fb40ad85c4dd06866aeb76660%40%3Cdev.netbeans.apache.org%3E

I was running the above on OpenJDK 16, no need for nb-javac, as far as I'm 
aware.

"Compile on Save" I didn't have enabled.

I suggest you use NetBeans to do the git clone and also that you open the root 
of the project and build that. Sorry, if you're going to do it some other way 
then I'm not going to be able to support your scenario -- building the whole 
project first is a logical way to start.

> Project (Keycloak) does not load properly
> -----------------------------------------
>
>                 Key: NETBEANS-5532
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5532
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.3
>         Environment: *Product Version:* Apache NetBeans IDE 12.3
> *Java:* 14.0.2; OpenJDK 64-Bit Server VM 14.0.2+12-Ubuntu-120.04
> *Runtime:* OpenJDK Runtime Environment 14.0.2+12-Ubuntu-120.04
> *System:* Linux version 5.4.0-70-generic running on amd64; UTF-8; de_DE (nb)
>            Reporter: Torsten Römer
>            Priority: Major
>         Attachments: Keycloak-cannot_find_symbol2.png, keycloak.png, 
> netbeans-test.tar.gz
>
>
> I did the following:
>  * git clone [https://github.com/keycloak/keycloak.git] (13.0.0-SNAPSHOT)
>  * cd keycloak; mvn clean install -DskipTests (build successful)
>  * Open keycloak-parent and keycloak-services in NetBeans
>  * Created a simple project with a dependency to 
> org.keycloak:keycloak-services
> *Expected behaviour:*
>  * The project(s) are loaded in NetBeans without errors
>  * A project using modules of the Keycloak project as dependency loads/builds 
> properly
> *Observed behaviour:*
>  * keycloak-parent loads fine and all its modules are displayed without 
> "unloadable"
>  * keycloak-services has some errors, for example "cannot find symbol" 
> org.keycloak.connections.httpclient.DefaultHttpClientFactory in 
> org.keycloak.connections.httpclient.DefaultHttpClientFactoryTest, even though 
> DefaultHttpClientFactory is present in the same project and package and 
> without error
>  * In a simple, separate project (attached) with a "provided" dependency to 
> keycloak-services, an import of for example 
> org.keycloak.crypto.ES256SignatureProviderFactory fails as well with "cannot 
> find symbol" while some other classes in the same package can be loaded like 
> Aes128CbcHmacSha256ContentEncryptionProviderFactory
> *Workaround:*
>  * Open the class(es) that cannot be found, i.e. 
> org.keycloak.connections.httpclient.DefaultHttpClientFactory
>  * Make a change, some whitespace is enough, save the class (it is now 
> compiled by nb-javac I suppose)
>  => "cannot find symbol" in DefaultHttpClientFactoryTest is gone
>  Doing the same for all other "cannot find symbol" eventually yields the 
> project keycloak-services to be without errors
>  * Same trick does however not work for 
> org.keycloak.crypto.ES256SignatureProviderFactory in the separate project, 
> class opens without error but CTRL+O does not find it



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-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