You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "lahodaj (via GitHub)" <gi...@apache.org> on 2025/10/13 06:50:11 UTC

Re: [PR] Set end position for implicit class declaration tree part of a compact source file [netbeans]

lahodaj commented on code in PR #8856:
URL: https://github.com/apache/netbeans/pull/8856#discussion_r2425352905


##########
java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementOpen.java:
##########
@@ -573,6 +573,10 @@ static void fillInTreePositions(CompilationInfo info, Tree forTree, Object[] tar
         int[] span = null;
         switch(forTree.getKind()) {
             case CLASS:
+                if ((int) target[1] >= 0 && (int) target[2] == -1) {
+                // Compact Source file (JEP 512)  issue implicit class end position not found in code 

Review Comment:
   ```suggestion
                       // Compact Source file (JEP 512)  issue implicit class end position not found in code 
                       // see JDK-8364015
   ```



-- 
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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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