jglick commented on issue #5738: URL: https://github.com/apache/netbeans/issues/5738#issuecomment-1488553315
Also can be reproduced after opening the project just by browsing inside `jenkins-core-2.361.4.jar` in the **Projects** tab and clicking on different `*.class` entries. Some open sources, some do not. When it does not work, the log notes ``` WARNING [org.netbeans.modules.java.ClassDataObject]: SourceFile: hudson/console/ExpandableDetailsNote in ~/.m2/repository/org/jenkins-ci/main/jenkins-core/2.361.4/jenkins-core-2.361.4.jar has no OpenCookie ``` The lack of a `.java` extension on this resource leads me to suspect that https://github.com/apache/netbeans/blob/4182d7dc316df11561ed4858436325e3f05fdfc5/java/java.source/src/org/netbeans/modules/java/ClassDataObject.java#L115-L118 is receiving a bogus result. Indeed the problem seems to occur on classes which have associated resources (the naming convention here is specific to Jenkins and its github.com/jenkinsci/stapler framework): ```console $ jar tf ~/.m2/repository/org/jenkins-ci/main/jenkins-core/2.361.4/jenkins-core-2.361.4-sources.jar | fgrep ExpandableDetailsNote hudson/console/ExpandableDetailsNote/ hudson/console/ExpandableDetailsNote.java hudson/console/ExpandableDetailsNote/style.css hudson/console/ExpandableDetailsNote/script.js ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
