manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.43k stars 125 forks source link

Deprecated class usage results in compilation error in IntelliJ IDEA #466

Closed monteragi closed 1 year ago

monteragi commented 1 year ago

Describe the bug Compilatation fails if @Deprecated class is used in the source code. It fails using Intelliji Idea for build. Maven compiles with no error... I reproduced it on two different PCs. Tried different JDKs - result is the same.

To Reproduce Steps to reproduce the behavior:

  1. Install IntelliJ IDEA 2023.2 (Community Edition)
  2. Checkout and open project: https://github.com/monteragi/manifold-test
  3. Select "Build Project" or Run from the IntelliJ IDEA toolbar.

Expected behavior Project is built / executed sucessfully.

Actual behavior It fails with compilation error:

\src\main\java\mytest\MM.java:6:34
java: unexpected type
  required: class
  found:    variable

Screenshots I recorded the short video. It shows the problem clearly. Please check https://www.youtube.com/watch?v=CfGud1mHHBQ

Desktop (please complete the following information):

Additional context Project uses: manifold-ext-rt and manifold-ext Compiliation via Maven works fines.

Stack trace \src\main\java\mytest\MM.java:6:34 java: unexpected type required: class found: variable

monteragi commented 1 year ago

It's something related to the deprecation warning... If I suppress it by "@SuppressWarnings("deprecation")" then compilation goes fine....

rsmckinney commented 1 year ago

@monteragi Thanks for this info, good to know. I think I know the problem, should have a fix ready for a release eod tomorrow.

rsmckinney commented 1 year ago

Fixed available with release 2023.1.11

monteragi commented 1 year ago

@rsmckinney Thanks a lot for the fix!