JaroslavTulach commented on PR #9623:
URL: https://github.com/apache/netbeans/pull/9623#issuecomment-5844480181

   - you are trying to avoid usage of 
[getEndPosition](https://docs.oracle.com/en/java/javase/25/docs/api/jdk.compiler/com/sun/source/util/SourcePositions.html#getEndPosition(com.sun.source.tree.CompilationUnitTree,com.sun.source.tree.Tree))
  which is fine on JDK25
   - but got deprecated in JDK 27 
[getEndPosition](https://docs.oracle.com/en/java/javase/27/docs/api/jdk.compiler/com/sun/source/util/SourcePositions.html#getEndPosition(com.sun.source.tree.CompilationUnitTree,com.sun.source.tree.Tree))
 
     - I have no idea, why it got deprecated, but:
     - I don't see any reason why it should be removed!
     - It can be kept around and continue to delegate to the other method with 
_less arguments_ indefinitely
     - I am sure Lahváč and Dušan could explain us the rationale, if they could 
speak openly in public...
   - as the method doesn't have to be removed (unless the 
[CompilationUnitTree](https://docs.oracle.com/en/java/javase/27/docs/api/jdk.compiler/com/sun/source/tree/CompilationUnitTree.html)
 is about to be removed)
      - I see little reasons to hurry up removing it from the JDK
      - by replacing its usage with a method that doesn't exist in JDK 25 ...
      - ... we disallow running NetBeans with older than JDK 27 plain javac
   - I am not saying it is a problem...
      - in fact, I like `requires.nb.javac=true` and I'd put it on by default 
;-)
      - the more [nb-javac](https://github.com/JaroslavTulach/nb-javac/), the 
better!
   - overall I don't feel I should judge this PR - this note is just my 
braindump - neither approval nor disapproval


-- 
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

Reply via email to