Picon

Analysis of pmd-bin-5.1.3's dependency on JDK-Internal APIs

Hi Andreas,

As part of the preparations for JDK 9, Oracle’s engineers have been 
analyzing open source projects like yours to understand usage.
One area of concern involves identifying compatibility problems, such as 
reliance on JDK-internal APIs.

Our engineers have already prepared guidance on migrating some of the 
more common usage patterns of JDK-internal APIs to supported public 
interfaces. The list is on the OpenJDK wiki [0], along with instructions 
on how to run the jdeps analysis tool yourself .

As part of the ongoing development of JDK 9, I would like to encourage 
migration from JDK-internal APIs towards the supported Java APIs. I have 
prepared a report for your project release pmd-bin-5.1.3 based on the 
jdeps output.

The report is attached to this e-mail.

For anything where your migration path is unclear, I would appreciate 
comments on the JDK-internal API usage patterns in the attached jdeps 
report - in particular comments elaborating on the rationale for them - 
either to me or on this list.

Finding suitable replacements for unsupported interfaces is not always 
straightforward, which is why I am reaching out to you early in the JDK 
9 development cycle so you can give feedback about new APIs that may be 
needed to facilitate this exercise.

Thank you in advance for any efforts and feedback helping us make JDK 9 
(Continue reading)

Picon

Early Access builds for JDK 9 b29 and JDK 8u40 b05 are available on java.net

Hi Andreas,

Early Access build for JDK 9 b29  is available on java.net, summary of changes are listed here

Early Access build for JDK 8u40 b05 is available on java.net, summary of changes are listed here.

Rgds,Rory
-- Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
Christofer Dutz | 6 Sep 13:45 2014
Picon

Modularizing PMD?

Hi,

 

after not receiving a response on my last post, I had a look at the PMD code.

 

Is there a reason for PMD including all languages in one monolithic jar?

 

Wouldn’t it be cooler to have each language located in a dedicated module and to have some sort of language-registry in the core module that includes all the languages it finds in PMDs classpath?

 

For maven for example I could add a pluginDependency to flex-pmd-plugin for example and then I could support flex without having to add all the flex code to PMDs codebase.

 

I would be happy to help or even completely do such a conversion myself.

Would there be any reasons to make PMD pluggable?

 

Chris

 

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
Christofer Dutz | 5 Sep 11:36 2014
Picon

Adding support for Apache Flex / ActionScript

Hi,


I am an active committer of the Apache Flex project and am currently working on getting some of the tools Adobe kindly donated to Apache released. One of these is FlexPMD ... it was a set of tools based upon PMD to allow analysis of Flex / ActionScript code.


I ran into serious problems when trying to get the donated code running in recent Maven versions as it was based on some really old PMD and PMD Maven-Plugin versions. So I started migrating the thing to the most recent PMD version.


While most seems to be running, the problem I am now having is that a rule now needs to have a "language" and the Language is implemented as an Enum ... so I have no way of extending this externally.


What would I have to do in order to add "Flex" (Or "MXML" and "ActionScript") to PMD?


Chris

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
Picon

Early Access builds for JDK 9 b28 and JDK 8u40 b04 are available on java.net

Hi  Andreas,

Early Access build for JDK 9 b28  is available on java.net, summary of changes are listed here

Early Access build for JDK 8u40 b04 is available on java.net, summary of changes are listed here.

Rgds,Rory -- Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
GitHub | 31 Aug 13:22 2014

[pmd/pmd]

  Branch: refs/tags/pmd_releases/5.1.3
  Home:   https://github.com/pmd/pmd
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
GitHub | 31 Aug 13:21 2014

[pmd/pmd] cd38be: JDK9 code changes - interface javax.swing.tree.Tre...

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: cd38be487eb8b1396a9c82af72e1755135124d88
      https://github.com/pmd/pmd/commit/cd38be487eb8b1396a9c82af72e1755135124d88
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M pmd/src/main/java/net/sourceforge/pmd/util/designer/Designer.java

  Log Message:
  -----------
  JDK9 code changes - interface javax.swing.tree.TreeNode changed slightly

  Commit: fae645106f84ecbabe69c39f578064f54e9d4c11
      https://github.com/pmd/pmd/commit/fae645106f84ecbabe69c39f578064f54e9d4c11
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M pmd/src/site/markdown/changelog.md

  Log Message:
  -----------
  Prepare pmd release 5.1.3

  Commit: 730d1d75c2383f4501253454ce349bf727c7722f
      https://github.com/pmd/pmd/commit/730d1d75c2383f4501253454ce349bf727c7722f
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M pmd/pom.xml

  Log Message:
  -----------
  release plugin back to 2.3.2 due to https://jira.codehaus.org/browse/MRELEASE-875

  Commit: 6063aafa80b775db4a69bb7fec19c6b7513e0566
      https://github.com/pmd/pmd/commit/6063aafa80b775db4a69bb7fec19c6b7513e0566
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M pmd/pom.xml

  Log Message:
  -----------
  [maven-release-plugin] prepare release pmd_releases/5.1.3

  Commit: 45c1a8ca71c4550222246f864287b8cc296b728e
      https://github.com/pmd/pmd/commit/45c1a8ca71c4550222246f864287b8cc296b728e
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M pmd/pom.xml

  Log Message:
  -----------
  [maven-release-plugin] prepare for next development iteration

  Commit: dea0fe616e1d818389980c2d06c9dabc51e56438
      https://github.com/pmd/pmd/commit/dea0fe616e1d818389980c2d06c9dabc51e56438
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-31 (Sun, 31 Aug 2014)

  Changed paths:
    M pmd/src/site/markdown/changelog-old.md
    M pmd/src/site/markdown/changelog.md

  Log Message:
  -----------
  Prepare next version

Compare: https://github.com/pmd/pmd/compare/b440eaf323be...dea0fe616e1d
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
GitHub | 30 Aug 21:20 2014

[pmd/pmd] b41e6f: #1246 False positive from MissingBreakInSwitch

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: b41e6ff6820a2652b4b31ba2c921b6b3ae6dda7c
      https://github.com/pmd/pmd/commit/b41e6ff6820a2652b4b31ba2c921b6b3ae6dda7c
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-24 (Sun, 24 Aug 2014)

  Changed paths:
    M pmd/src/main/resources/rulesets/java/design.xml
    M pmd/src/site/markdown/changelog.md
    M pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/MissingBreakInSwitch.xml

  Log Message:
  -----------
  #1246 False positive from MissingBreakInSwitch

  Commit: 5efaafc4f636016ed092b157a41b25d78f01ffb0
      https://github.com/pmd/pmd/commit/5efaafc4f636016ed092b157a41b25d78f01ffb0
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-30 (Sat, 30 Aug 2014)

  Changed paths:
    M pmd/src/site/markdown/changelog.md
    M pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/unusedcode/xml/UnusedPrivateMethod.xml

  Log Message:
  -----------
  verify #1251 UnusedPrivateMethod false positives for boxing & unboxing arguments

  Commit: 94da2876c03dbaca1e43ce8be8685b2f370eb9e4
      https://github.com/pmd/pmd/commit/94da2876c03dbaca1e43ce8be8685b2f370eb9e4
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-30 (Sat, 30 Aug 2014)

  Changed paths:
    M pmd/src/site/xdocs/suppressing.xml

  Log Message:
  -----------
  Documentation: Extra closing-brace in suppress-warnings example
See: https://sourceforge.net/p/pmd/discussion/188192/thread/9ecda507/

  Commit: c1f0d3c43bf374fc4d22ed6e968061cafb68c740
      https://github.com/pmd/pmd/commit/c1f0d3c43bf374fc4d22ed6e968061cafb68c740
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-30 (Sat, 30 Aug 2014)

  Changed paths:
    M pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/JavaRuleViolation.java
    M pmd/src/site/markdown/changelog.md
    M pmd/src/test/java/net/sourceforge/pmd/lang/java/rule/JavaRuleViolationTest.java

  Log Message:
  -----------
  #1250 Method attribute missing for some violations

  Commit: b440eaf323be642efd7bc5f13055be1fb1012bf6
      https://github.com/pmd/pmd/commit/b440eaf323be642efd7bc5f13055be1fb1012bf6
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-30 (Sat, 30 Aug 2014)

  Changed paths:
    M pmd/src/site/markdown/changelog.md
    M pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/unusedcode/xml/UnusedPrivateMethod.xml

  Log Message:
  -----------
  verify #1249 Regression: UnusedPrivateMethod from 5.0.5 to 5.1.2

Compare: https://github.com/pmd/pmd/compare/eaa58d7f5f8b...b440eaf323be
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
Picon

Early Access build for JDK 8u40 build 02 is available on java.net

Hi Andreas,

Early Access build for JDK 8u40 build 02 is available on java.net.

Summary of changes in JDK 8u40 build 02 are listed here.

Early Access Build Test Results

Rgds,Rory
-- Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
GitHub | 22 Aug 23:03 2014

[pmd/pmd] 3e182c: Verify #1246 False positive from MissingBreakInSwi...

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 3e182c9b03432cf46131e2b9f693f2b9ef062eed
      https://github.com/pmd/pmd/commit/3e182c9b03432cf46131e2b9f693f2b9ef062eed
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-22 (Fri, 22 Aug 2014)

  Changed paths:
    M pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/MissingBreakInSwitch.xml

  Log Message:
  -----------
  Verify #1246 False positive from MissingBreakInSwitch

  Commit: 8a9c44148a1581aafed593e437e8802dbf7e21e6
      https://github.com/pmd/pmd/commit/8a9c44148a1581aafed593e437e8802dbf7e21e6
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-22 (Fri, 22 Aug 2014)

  Changed paths:
    M pmd/src/main/java/net/sourceforge/pmd/lang/java/rule/coupling/LawOfDemeterRule.java
    M pmd/src/site/markdown/changelog.md
    M pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/coupling/xml/LawOfDemeter.xml

  Log Message:
  -----------
  #1245 False Positive for Law of Demeter

  Commit: eaa58d7f5f8beff313c955e20224cd6a94b26d15
      https://github.com/pmd/pmd/commit/eaa58d7f5f8beff313c955e20224cd6a94b26d15
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2014-08-22 (Fri, 22 Aug 2014)

  Changed paths:
    M pmd/etc/grammar/Java.jjt
    M pmd/src/site/markdown/changelog.md
    M pmd/src/test/resources/net/sourceforge/pmd/lang/java/rule/unusedcode/xml/UnusedLocalVariable.xml

  Log Message:
  -----------
  #1247 Not able to recognize JDK 8 Static Method References

Compare: https://github.com/pmd/pmd/compare/67cdaf9edd10...eaa58d7f5f8b
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
Picon

Early Access build for JDK 9 b27 is available on java.net

Hi Andreas,

Early Access build for JDK 9 b27  is available on java.net, summary of changes here

I'd also like to use this opportunity to point you to ongoing work in OpenJDK on Project Jigsaw.

    - JDK 9's source code is now modular: http://mail.openjdk.java.net/pipermail/jdk9-dev/2014-August/001220.html

    - Mark Reinhold's post providing some context is available on his blog: http://mreinhold.org/blog/jigsaw-phase-two

    - The first two Project Jigsaw JEPs have been posted at http://openjdk.java.net/jeps/200 & http://openjdk.java.net/jeps/201 .

You can also track the progress on the JEPs in the JDK Bug System now - the corresponding JBS issue for JEP 201 is https://bugs.openjdk.java.net/browse/JDK-8051619 , for example.

Comments, questions, and suggestions are welcome on the jigsaw-dev mailing list. (If you haven’t already subscribed to that list then please do so first, otherwise your message will be discarded as spam.)

Rgds,Rory
-- Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel

Gmane